diff --git a/docker.io/portainer/kubectl-shell/latest-v1.21.1-amd64/Dockerfile b/docker.io/portainer/kubectl-shell/latest-v1.21.1-amd64/Dockerfile index e6f81215..cf58e468 100644 --- a/docker.io/portainer/kubectl-shell/latest-v1.21.1-amd64/Dockerfile +++ b/docker.io/portainer/kubectl-shell/latest-v1.21.1-amd64/Dockerfile @@ -24,5 +24,8 @@ FROM docker.io/portainer/kubectl-shell:latest-v1.21.1-amd64 USER 0 -RUN apk add --upgrade apk-tools --no-cache && apk update --no-cache && apk --update-cache upgrade --no-cache +RUN apk add --upgrade apk-tools --no-cache && apk update --no-cache && apk --update-cache upgrade --no-cache && apk add --no-cache rpm2cpio cpio && rm -rf /var/cache/apk/* +# use curl to download the rpm file +RUN curl -L https://github.com/Cray-HPE/cray-site-init/releases/download/v1.32.0/cray-site-init-1.32.0-1.x86_64.noos.rpm -o /tmp/cray-site-init.rpm +RUN cd /tmp && rpm2cpio cray-site-init.rpm | cpio -idmv && cp /tmp/usr/bin/csi /usr/local/bin/csi && rm -rf /tmp USER 1000