From fe161d93fb0a144e9a70fba80dfd20b40c550e18 Mon Sep 17 00:00:00 2001 From: Peter Kurfer Date: Thu, 28 Nov 2024 13:10:35 +0100 Subject: [PATCH] feat(act): add S3 CLI --- act_runtime/Dockerfile | 40 +++++++++++++++++++++++----------------- 1 file changed, 23 insertions(+), 17 deletions(-) diff --git a/act_runtime/Dockerfile b/act_runtime/Dockerfile index ad4f2e3..2c6dc2b 100644 --- a/act_runtime/Dockerfile +++ b/act_runtime/Dockerfile @@ -11,20 +11,20 @@ RUN --mount=type=cache,target=/var/lib/apt \ --mount=type=cache,target=/var/cache/apt \ apt-get update && \ apt-get install -y \ - sudo \ - git-lfs \ - ca-certificates \ - curl \ - jq \ - gnupg \ - gcc \ - clang-${LLVM_VERSION} \ - llvm-${LLVM_VERSION} \ - libbpf-dev \ - make \ - unzip \ - libgraphite2-3 \ - zstd && \ + sudo \ + git-lfs \ + ca-certificates \ + curl \ + jq \ + gnupg \ + gcc \ + clang-${LLVM_VERSION} \ + llvm-${LLVM_VERSION} \ + libbpf-dev \ + make \ + unzip \ + libgraphite2-3 \ + zstd && \ ln -s /usr/lib/llvm-${LLVM_VERSION}/bin/clang /usr/bin/clang && \ ln -s -f /usr/lib/llvm-${LLVM_VERSION}/bin/llc /usr/bin/ @@ -37,8 +37,14 @@ RUN --mount=type=cache,target=/var/lib/apt \ --mount=type=cache,target=/var/cache/apt \ echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" > /etc/apt/sources.list.d/github-cli.list && \ echo \ - "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian $(. /etc/os-release && echo "$VERSION_CODENAME") stable" > /etc/apt/sources.list.d/docker.list && \ + "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian $(. /etc/os-release && echo "$VERSION_CODENAME") stable" > /etc/apt/sources.list.d/docker.list && \ apt-get update && \ apt-get install -y \ - gh \ - docker-ce docker-ce-cli containerd.io docker-buildx-plugin \ \ No newline at end of file + gh \ + docker-ce docker-ce-cli containerd.io docker-buildx-plugin + +# AWS CLI +RUN --mount=type=cache,target=/tmp \ + curl -o "/tmp/awscliv2.zip" "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" && \ + unzip /tmp/awscliv2.zip -d /tmp && \ + /tmp/aws/install