fixed dockerfile with buildarchs
This commit is contained in:
parent
cd20eeb737
commit
ee5c441d72
3 changed files with 13 additions and 13 deletions
|
|
@ -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 && \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue