Skip to content

Commit

Permalink
Merge pull request #1555 from k8s-infra-cherrypick-robot/cherry-pick-…
Browse files Browse the repository at this point in the history
…1553-to-release-1.29

[release-1.29] feat: upgrade azcopy to 10.21.2
  • Loading branch information
andyzhangx authored Nov 9, 2023
2 parents 3588d8b + cfc6f14 commit 812ff1b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
3 changes: 0 additions & 3 deletions .trivyignore

This file was deleted.

11 changes: 6 additions & 5 deletions pkg/azurefileplugin/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,18 @@ ARG ARCH=amd64
ARG binary=./_output/${ARCH}/azurefileplugin
COPY ${binary} /azurefileplugin

RUN apt update && apt upgrade -y && apt-mark unhold libcap2 && clean-install ca-certificates cifs-utils util-linux e2fsprogs mount udev xfsprogs nfs-common netbase curl
RUN apt update && apt upgrade -y && apt-mark unhold libcap2 && clean-install ca-certificates cifs-utils util-linux e2fsprogs mount udev xfsprogs nfs-common netbase wget

# install azcopy
ARG azcopyURL=https://aka.ms/downloadazcopy-v10-linux
ARG azcopyURL=https://azcopyvnext.azureedge.net/releases/release-10.21.2-20231106/azcopy_linux_amd64_10.21.2.tar.gz
RUN if [ "$ARCH" == "arm64" ] ; then \
azcopyURL=${azcopyURL}"-arm64"; fi
RUN curl -sL ${azcopyURL} | tar -xz && \
azcopyURL=https://azcopyvnext.azureedge.net/releases/release-10.21.2-20231106/azcopy_linux_arm64_10.21.2.tar.gz; fi
RUN wget -O azcopy.tar.gz ${azcopyURL} && \
tar xvzf azcopy.tar.gz -C . && rm azcopy.tar.gz && \
mv ./azcopy_linux_$ARCH_*/azcopy /usr/local/bin/azcopy && \
rm -rf ./azcopy_linux_$ARCH_*
RUN chmod +x /usr/local/bin/azcopy
RUN apt remove curl -y
RUN apt remove wget -y

LABEL maintainers="andyzhangx"
LABEL description="AzureFile CSI Driver"
Expand Down

0 comments on commit 812ff1b

Please sign in to comment.