Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

Commit

Permalink
fix: removes installing AWS CLI V2 since geodesic latest includes it (#8
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Gowiem authored Jun 21, 2021
1 parent 6ab328e commit f0d122e
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,6 @@ ARG CLI_NAME=tutorials

FROM cloudposse/geodesic:$VERSION-$OS

# Move AWS CLI v1 to aws1 and set up alternatives
RUN mv /usr/local/bin/aws /usr/local/bin/aws1 && \
update-alternatives --install /usr/local/bin/aws aws /usr/local/bin/aws1 1

# Install AWS CLI 2
# Get version from https://github.com/aws/aws-cli/blob/v2/CHANGELOG.rst
ARG AWS_CLI_VERSION=2.1.34
RUN AWSTMPDIR=$(mktemp -d -t aws-inst-XXXXXXXXXX) && \
curl -sSL "https://awscli.amazonaws.com/awscli-exe-linux-x86_64-${AWS_CLI_VERSION}.zip" -o "$AWSTMPDIR/awscliv2.zip" && \
cd $AWSTMPDIR && \
unzip -qq awscliv2.zip && \
./aws/install -i /usr/share/aws/v2 -b /usr/share/aws/v2/bin && \
update-alternatives --install /usr/local/bin/aws aws /usr/share/aws/v2/bin/aws 2 && \
rm -rf $AWSTMPDIR

# Install ubuntu universe repo so we can install more helpful packages
RUN apt-get install -y software-properties-common && \
add-apt-repository "deb http://archive.ubuntu.com/ubuntu bionic universe" && \
Expand Down

0 comments on commit f0d122e

Please sign in to comment.