Skip to content

Commit 0488486

Browse files
authored
Upgrade to AWSCLI v2 and stable-2.10-latest (#34)
* Deprecate use of AWSCLI v1 in favour of v2, which supports SSO and other newer features * Change from using stable-2.10-devel to stable-2.10-latest, which is the preferred upstream branch Signed-off-by: Daniel Chaffelson <[email protected]>
1 parent ac17d94 commit 0488486

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

Dockerfile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
ARG BASE_IMAGE_URI=quay.io/ansible/ansible-runner
2-
ARG BASE_IMAGE_TAG=stable-2.10-devel
2+
ARG BASE_IMAGE_TAG=stable-2.10-latest
33

44
FROM ${BASE_IMAGE_URI}:${BASE_IMAGE_TAG} AS base
55

@@ -19,7 +19,7 @@ COPY payload /runner/
1919
RUN rpm --import https://packages.microsoft.com/keys/microsoft.asc \
2020
&& cp /runner/deps/*.repo /etc/yum.repos.d/ \
2121
&& dnf clean expire-cache \
22-
&& dnf install -y python38-devel git curl which bash gcc terraform nano vim \
22+
&& dnf install -y python38-devel git curl which bash gcc terraform nano vim unzip \
2323
&& pip install -r /runner/deps/python_base.txt \
2424
&& pip install -r /runner/deps/python_secondary.txt \
2525
&& ansible-galaxy role install -p /opt/cldr-runner/roles -r /runner/deps/ansible.yml \
@@ -77,7 +77,11 @@ RUN if [[ -z "$KUBECTL" ]] ; then echo KUBECTL not requested ; else \
7777
&& if [[ -z "$AWS" ]] ; then echo AWS not requested ; else \
7878
pip install -r /runner/deps/python_aws.txt && \
7979
curl -o /usr/local/bin/aws-iam-authenticator https://amazon-eks.s3.us-west-2.amazonaws.com/1.19.6/2021-01-05/bin/linux/amd64/aws-iam-authenticator && \
80-
chmod +x /usr/local/bin/aws-iam-authenticator \
80+
chmod +x /usr/local/bin/aws-iam-authenticator && \
81+
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "/tmp/awscliv2.zip" && \
82+
unzip /tmp/awscliv2.zip -d /tmp && \
83+
/tmp/aws/install && \
84+
rm /tmp/awscliv2.zip && rm -rf /tmp/aws \
8185
; fi \
8286
&& if [[ -z "$GCLOUD" ]] ; then echo GCLOUD not requested ; else \
8387
dnf install -y google-cloud-sdk && \

payload/deps/python_aws.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# AWS
2-
awscli>=1.18.222
32
botocore
43
boto>=2.5
54
boto3

0 commit comments

Comments
 (0)