From d100fe851c4cea28c4c51d57cdca307eb5aec1c2 Mon Sep 17 00:00:00 2001 From: hundt-corbalt <79656825+hundt-corbalt@users.noreply.github.com> Date: Thu, 23 Jan 2025 09:14:49 -0500 Subject: [PATCH] Install awscli in runner (#235) --- latest.Dockerfile | 6 ++++++ playwright.Dockerfile | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/latest.Dockerfile b/latest.Dockerfile index 63df72c..6b671a3 100644 --- a/latest.Dockerfile +++ b/latest.Dockerfile @@ -42,6 +42,12 @@ RUN apt-get update \ unzip \ && rm -rf /var/lib/apt/lists +# install awscli because the standard runner has it +# per https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html +RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" \ + && unzip awscliv2.zip \ + && ./aws/install + # Remove setuid and setgid permissions after all package installations to address # https://github.com/goodwithtech/dockle/blob/master/CHECKPOINT.md#cis-di-0008 RUN find / -path /proc -prune -o -perm /6000 -type f -exec chmod a-s {} + || true diff --git a/playwright.Dockerfile b/playwright.Dockerfile index 9a689ca..be4dd8c 100644 --- a/playwright.Dockerfile +++ b/playwright.Dockerfile @@ -35,6 +35,12 @@ RUN apt-get update \ unzip \ && rm -rf /var/lib/apt/lists +# install awscli because the standard runner has it +# per https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html +RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" \ + && unzip awscliv2.zip \ + && ./aws/install + WORKDIR /home/runner USER runner