ARG RELEASE |
ARG LAUNCHPAD_BUILD_ARCH |
LABEL org.opencontainers.image.ref.name=ubuntu |
LABEL org.opencontainers.image.version=24.04 |
ADD file:765dfd09ec2ac4870c8b3efd6ef4a994f99695c574d546d7a9a0e69bbb970b03 in / |
CMD ["/bin/bash"] |
ARG LLVM_VERSION=16 |
ARG TARGETARCH=arm64 |
RUN |2 LLVM_VERSION=16 TARGETARCH=arm64 /bin/sh -c curl -fsSL https://deb.nodesource.com/setup_20.x | bash - # buildkit |
RUN |2 LLVM_VERSION=16 TARGETARCH=arm64 /bin/sh -c apt-get update && apt-get install -y lsb-release sudo git-lfs ca-certificates curl jq gnupg gcc clang-${LLVM_VERSION} llvm-${LLVM_VERSION} libbpf-dev make unzip nodejs 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/ # buildkit |
ADD --chmod=444 https://cli.github.com/packages/githubcli-archive-keyring.gpg /etc/apt/keyrings/githubcli-archive-keyring.gpg # buildkit |
ADD --chmod=444 https://download.docker.com/linux/debian/gpg /etc/apt/keyrings/docker.asc # buildkit |
RUN |2 LLVM_VERSION=16 TARGETARCH=arm64 /bin/sh -c 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/ubuntu $(. /etc/os-release && echo "$VERSION_CODENAME") stable" > /etc/apt/sources.list.d/docker.list && apt-get update && apt-get install -y gh docker-ce-cli docker-buildx-plugin # buildkit |
RUN |2 LLVM_VERSION=16 TARGETARCH=arm64 /bin/sh -c if [ "${TARGETARCH}" = "amd64" ]; then curl -o "/tmp/awscliv2.zip" "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip"; elif [ "${TARGETARCH}" = "arm64" ]; then curl -o "/tmp/awscliv2.zip" "https://awscli.amazonaws.com/awscli-exe-linux-aarch64.zip"; else echo "Unsupported architecture: ${TARGETARCH}"; exit 1; fi && unzip -o /tmp/awscliv2.zip -d /tmp && /tmp/aws/install # buildkit |
RUN |2 LLVM_VERSION=16 TARGETARCH=arm64 /bin/sh -c curl -sSL -o /usr/local/bin/argocd https://github.com/argoproj/argo-cd/releases/latest/download/argocd-linux-arm64 && chmod +x /usr/local/bin/argocd && argocd version --client # buildkit |
RUN |2 LLVM_VERSION=16 TARGETARCH=arm64 /bin/sh -c curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | bash -s -- /usr/local/bin # buildkit |