Skip to content

Commit

Permalink
feat(dockerfiles/cd/utils/release): add aws-cli tool
Browse files Browse the repository at this point in the history
Signed-off-by: wuhuizuo <[email protected]>
  • Loading branch information
wuhuizuo committed Jan 16, 2025
1 parent 31da28b commit 57cec55
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions dockerfiles/cd/utils/release/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,11 @@ RUN OS=linux; ARCH=$([ "$(arch)" = "x86_64" ] && echo amd64 || echo arm64); \
wget -q -O - https://tiup-mirrors.pingcap.com/tiup-v${TIUP_VER}-${OS}-${ARCH}.tar.gz | tar -zxvf - -C /usr/local/bin && \
chmod 755 /usr/local/bin/tiup && \
mkdir -p "$HOME/.tiup/bin"

# install tools: aws-cli
ARG AWS_CLI_VERSION=2.23.0
RUN OS=linux; ARCH=$([ "$(arch)" = "x86_64" ] && echo amd64 || echo aarch64); \
RUN curl "https://awscli.amazonaws.com/awscli-exe-${OS}-{ARCH}-${AWS_CLI_VERSION}.zip" -o "awscliv2.zip" && \
unzip awscliv2.zip && \
./aws/install --bin-dir /usr/local/bin --install-dir /usr/local/aws-cli --update && \
rm -rf awscliv2.zip aws

0 comments on commit 57cec55

Please sign in to comment.