fixed dockerfile with buildarchs

This commit is contained in:
Michael Trip 2023-10-03 16:34:25 +02:00
parent cd20eeb737
commit ee5c441d72
3 changed files with 13 additions and 13 deletions

View file

@ -10,11 +10,11 @@ RUN \
echo "**** install packages ****" && \
rpm --import https://packages.microsoft.com/keys/microsoft.asc && \
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 && \
echo "Install and download OpenLens" && \
dnf install -y wget && \
wget https://github.com/MuhammedKalkan/OpenLens/releases/download/v6.5.2-366/OpenLens-6.5.2-366.x86_64.rpm && \
echo "Install and download OpenLens" && \
if [ "$BUILDARCH" = "amd64" ]; then wget -O https://github.com/MuhammedKalkan/OpenLens/releases/download/v6.5.2-366/OpenLens-6.5.2-366.x86_64.rpm; elif [ "$BUILDARCH" = "arm64" ]; then wget -O https://github.com/MuhammedKalkan/OpenLens/releases/download/v6.5.2-366/OpenLens-6.5.2-366.aarch64.rpm; fi && \
echo "Install and download k9s" && \
wget https://github.com/derailed/k9s/releases/download/v0.27.4/k9s_Linux_amd64.tar.gz && \
wget https://github.com/derailed/k9s/releases/download/v0.27.4/k9s_Linux_$BUILDARCH.tar.gz && \
dnf install -y --setopt=install_weak_deps=False --best \
terminator \
tilix \
@ -28,8 +28,8 @@ RUN \
thunderbird \
firefox \
code && \
dnf localinstall -y /tmp/OpenLens-6.5.2-366.x86_64.rpm && \
tar -zxvf /tmp/k9s_Linux_amd64.tar.gz && \
if [ "$BUILDARCH" = "amd64" ]; dnf localinstall -y /tmp/OpenLens-6.5.2-366.aarch64.rpm; elif [ "$BUILDARCH" = "arm64" ]; then dnf localinstall -y /tmp/OpenLens-6.5.2-366.aarch64.rpm; fi && \
tar -zxvf /tmp/k9s_Linux_$BUILDARCH.tar.gz && \
mv /tmp/k9s /usr/local/bin && \
echo "**** cleanup ****" && \
dnf autoremove -y && \