Add codium to base image

This commit is contained in:
2025-01-26 13:38:19 -05:00
parent e8618ebd0a
commit b75e06638c
2 changed files with 20 additions and 1 deletions

View File

@@ -14,4 +14,12 @@ ADD load-user-bashrc.sh /etc/profile.d/99-load-user-bashrc.sh
RUN dnf install --assumeyes \ RUN dnf install --assumeyes \
powerline \ powerline \
make make \
jq
ADD install-codium.bash /tmp/install-codium.bash
RUN /tmp/install-codium.bash
RUN dnf install --assumeyes \
/tmp/rpms/*.rpm
RUN rm -rf /tmp/install-codium.bash
RUN rm -rf /tmp/rpms

11
install-codium.bash Executable file
View File

@@ -0,0 +1,11 @@
#!/usr/bin/env bash
set -e
latest_codium=$(curl -sSL https://api.github.com/repos/VSCodium/vscodium/releases/latest | jq -r '.tag_name')
mkdir -p /tmp/rpms
echo "Downloading vscodium-${latest_codium}..."
curl -sSLo /tmp/rpms/codium.rpm "https://github.com/VSCodium/vscodium/releases/download/${latest_codium}/codium-${latest_codium}-el9.x86_64.rpm"