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 478f187
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dockerfiles/cd/utils/release/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,9 @@ 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
RUN apk add --no-cache python3 aws-cli py3-pip && \
pip3 install --no-deps awscli-plugin-endpoint --break-system-packages && \
aws configure set plugins.cli_legacy_plugin_path $(find /usr/lib -name site-packages -type d | head -1) && \
aws configure set plugins.endpoint awscli_plugin_endpoint

0 comments on commit 478f187

Please sign in to comment.