From dd8dd86ecc2537cfe65f4bc0dc687dcfdab58a3e Mon Sep 17 00:00:00 2001 From: Jonathan Yoder Date: Thu, 28 Mar 2019 11:11:41 -0400 Subject: [PATCH] Make aws CLI work --- builder/Dockerfile.centos-6 | 5 ++--- builder/Dockerfile.centos-7 | 3 ++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/builder/Dockerfile.centos-6 b/builder/Dockerfile.centos-6 index 58f8153..685d668 100644 --- a/builder/Dockerfile.centos-6 +++ b/builder/Dockerfile.centos-6 @@ -57,9 +57,8 @@ RUN curl "https://bootstrap.pypa.io/2.6/get-pip.py" -o "get-pip.py" && \ python get-pip.py # Install AWS CLI. -RUN pip install awscli --upgrade --user - -RUN pip install awscli +RUN pip install awscli --upgrade --user && \ + ln -s /root/.local/bin/aws /usr/bin/aws RUN chmod 0777 /opt diff --git a/builder/Dockerfile.centos-7 b/builder/Dockerfile.centos-7 index ae1af40..e2533c7 100644 --- a/builder/Dockerfile.centos-7 +++ b/builder/Dockerfile.centos-7 @@ -51,7 +51,8 @@ RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \ python get-pip.py # Install AWS CLI. -RUN pip install awscli --upgrade --user +RUN pip install awscli --upgrade --user && \ + ln -s /root/.local/bin/aws /usr/bin/aws RUN chmod 0777 /opt