From 7f9e036455eaf96fe87026620e1983f479a7e560 Mon Sep 17 00:00:00 2001 From: bri <284789+b-@users.noreply.github.com> Date: Wed, 4 Oct 2023 20:42:20 -0400 Subject: [PATCH] Fix vscode script, remove 1password --- Containerfile | 2 +- scripts/code-insiders.sh | 7 +++++++ scripts/vscode.sh | 13 ------------- 3 files changed, 8 insertions(+), 14 deletions(-) create mode 100755 scripts/code-insiders.sh delete mode 100644 scripts/vscode.sh diff --git a/Containerfile b/Containerfile index 68ff415..75a4a93 100644 --- a/Containerfile +++ b/Containerfile @@ -8,7 +8,7 @@ ADD scripts/* /tmp/ RUN /tmp/bat.sh RUN /tmp/delta.sh RUN /tmp/git.sh -RUN /tmp/1password.sh +RUN /tmp/code-insiders.sh # RUN /tmp/cleanup.sh diff --git a/scripts/code-insiders.sh b/scripts/code-insiders.sh new file mode 100755 index 0000000..a501d09 --- /dev/null +++ b/scripts/code-insiders.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env sh +# from https://code.visualstudio.com/docs/setup/linux#_rhel-fedora-and-centos-based-distributions + +sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc +curl -Lo code-insiders.rpm 'https://code.visualstudio.com/sha/download?build=stable&os=linux-rpm-x64' +sudo rpm -ivh code-insiders.rpm + diff --git a/scripts/vscode.sh b/scripts/vscode.sh deleted file mode 100644 index 727ec4a..0000000 --- a/scripts/vscode.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/env sh -# from https://code.visualstudio.com/docs/setup/linux#_rhel-fedora-and-centos-based-distributions -# RHEL, Fedora, and CentOS based distributions -# -# We currently ship the stable 64-bit VS Code in a yum repository, the following script will install the key and repository: - -sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc -sudo sh -c 'echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/vscode.repo' - -# Then update the package cache and install the package using dnf (Fedora 22 and above): - -dnf check-update -sudo dnf install code-insiders \ No newline at end of file