Skip to content

Commit

Permalink
Add AWSCLI to Amazon Linux Docker image.
Browse files Browse the repository at this point in the history
  • Loading branch information
josh-padnick committed Mar 12, 2018
1 parent 6bfa02a commit 0742bb2
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions _docker-images/gruntwork-amzn-linux-test/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@ RUN yum update -y && \
wget && \
yum clean all

# Installing pip with yum doesn't actually put it in the PATH, so we use easy_install instead.
# Installing pip with yum doesn't actually put it in the PATH, so we use easy_install instead. Pip will now be placed
# in /usr/local/bin, but amazonlinux's sudo uses a sanitzed PATH that does not include /usr/local/bin, so we symlink pip.
RUN curl https://bootstrap.pypa.io/ez_setup.py | sudo /usr/bin/python && \
easy_install pip && \
pip install --upgrade pip
pip install --upgrade pip && \
ln -s /usr/local/bin/pip /usr/bin/pip

# Install the AWSCLI (which apparently does not come pre-bundled with Amazon Linux!)
RUN pip install --upgrade setuptools && \
pip install awscli --upgrade

0 comments on commit 0742bb2

Please sign in to comment.