Skip to content

Commit

Permalink
Fix: Install the selected AWS CLI version, not latest
Browse files Browse the repository at this point in the history
  • Loading branch information
clemlesne committed Nov 21, 2023
1 parent 72a5c06 commit a78b3c5
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/docker/Dockerfile-bookworm
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ RUN python3 -m pip \
# Install AWS CLI, then verify installation
ARG AWS_CLI_VERSION
ENV AWS_CLI_VERSION ${AWS_CLI_VERSION}
RUN curl -LsSf --retry 8 --retry-all-errors https://awscli.amazonaws.com/awscli-exe-linux-$(ARCH_X64=x86_64 ARCH_ARM64=aarch64 bash arch.sh).zip -o awscli.zip \
RUN curl -LsSf --retry 8 --retry-all-errors https://awscli.amazonaws.com/awscli-exe-linux-$(ARCH_X64=x86_64 ARCH_ARM64=aarch64 bash arch.sh)-${AWS_CLI_VERSION}.zip -o awscli.zip \
&& unzip -q awscli.zip \
&& ./aws/install \
&& rm -rf awscli.zip aws \
Expand Down
2 changes: 1 addition & 1 deletion src/docker/Dockerfile-bullseye
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ RUN python3 -m pip \
# Install AWS CLI, then verify installation
ARG AWS_CLI_VERSION
ENV AWS_CLI_VERSION ${AWS_CLI_VERSION}
RUN curl -LsSf --retry 8 --retry-all-errors https://awscli.amazonaws.com/awscli-exe-linux-$(ARCH_X64=x86_64 ARCH_ARM64=aarch64 bash arch.sh).zip -o awscli.zip \
RUN curl -LsSf --retry 8 --retry-all-errors https://awscli.amazonaws.com/awscli-exe-linux-$(ARCH_X64=x86_64 ARCH_ARM64=aarch64 bash arch.sh)-${AWS_CLI_VERSION}.zip -o awscli.zip \
&& unzip -q awscli.zip \
&& ./aws/install \
&& rm -rf awscli.zip aws \
Expand Down
2 changes: 1 addition & 1 deletion src/docker/Dockerfile-focal
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ RUN python3 -m pip \
# Install AWS CLI, then verify installation
ARG AWS_CLI_VERSION
ENV AWS_CLI_VERSION ${AWS_CLI_VERSION}
RUN curl -LsSf --retry 8 https://awscli.amazonaws.com/awscli-exe-linux-$(ARCH_X64=x86_64 ARCH_ARM64=aarch64 bash arch.sh).zip -o awscli.zip \
RUN curl -LsSf --retry 8 https://awscli.amazonaws.com/awscli-exe-linux-$(ARCH_X64=x86_64 ARCH_ARM64=aarch64 bash arch.sh)-${AWS_CLI_VERSION}.zip -o awscli.zip \
&& unzip -q awscli.zip \
&& ./aws/install \
&& rm -rf awscli.zip aws \
Expand Down
2 changes: 1 addition & 1 deletion src/docker/Dockerfile-jammy
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ RUN python3 -m pip \
# Install AWS CLI, then verify installation
ARG AWS_CLI_VERSION
ENV AWS_CLI_VERSION ${AWS_CLI_VERSION}
RUN curl -LsSf --retry 8 --retry-all-errors https://awscli.amazonaws.com/awscli-exe-linux-$(ARCH_X64=x86_64 ARCH_ARM64=aarch64 bash arch.sh).zip -o awscli.zip \
RUN curl -LsSf --retry 8 --retry-all-errors https://awscli.amazonaws.com/awscli-exe-linux-$(ARCH_X64=x86_64 ARCH_ARM64=aarch64 bash arch.sh)-${AWS_CLI_VERSION}.zip -o awscli.zip \
&& unzip -q awscli.zip \
&& ./aws/install \
&& rm -rf awscli.zip aws \
Expand Down
2 changes: 1 addition & 1 deletion src/docker/Dockerfile-ubi8
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ RUN python3 -m pip \
# Install AWS CLI, then verify installation
ARG AWS_CLI_VERSION
ENV AWS_CLI_VERSION ${AWS_CLI_VERSION}
RUN curl -LsSf --retry 8 https://awscli.amazonaws.com/awscli-exe-linux-$(ARCH_X64=x86_64 ARCH_ARM64=aarch64 bash arch.sh).zip -o awscli.zip \
RUN curl -LsSf --retry 8 https://awscli.amazonaws.com/awscli-exe-linux-$(ARCH_X64=x86_64 ARCH_ARM64=aarch64 bash arch.sh)-${AWS_CLI_VERSION}.zip -o awscli.zip \
&& unzip -q awscli.zip \
&& ./aws/install \
&& rm -rf awscli.zip aws \
Expand Down
2 changes: 1 addition & 1 deletion src/docker/Dockerfile-ubi9
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ RUN python3.11 -m pip \
# Install AWS CLI, then verify installation
ARG AWS_CLI_VERSION
ENV AWS_CLI_VERSION ${AWS_CLI_VERSION}
RUN curl -LsSf --retry 8 --retry-all-errors https://awscli.amazonaws.com/awscli-exe-linux-$(ARCH_X64=x86_64 ARCH_ARM64=aarch64 bash arch.sh).zip -o awscli.zip \
RUN curl -LsSf --retry 8 --retry-all-errors https://awscli.amazonaws.com/awscli-exe-linux-$(ARCH_X64=x86_64 ARCH_ARM64=aarch64 bash arch.sh)-${AWS_CLI_VERSION}.zip -o awscli.zip \
&& unzip -q awscli.zip \
&& ./aws/install \
&& rm -rf awscli.zip aws \
Expand Down

0 comments on commit a78b3c5

Please sign in to comment.