Skip to content

Commit

Permalink
CASMINST-6512 add csi binary to image instead of host mount (#581)
Browse files Browse the repository at this point in the history
  • Loading branch information
dzou-hpe authored Jul 20, 2023
1 parent a92b747 commit 3981742
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 3981742

Please sign in to comment.