feat: add llvm & ebpf libraries
All checks were successful
act_runtime / build_images (node:20-bookworm-slim, ubuntu-latest) (push) Successful in 2m41s
act_runtime / build_images (node:20-bookworm-slim, ubuntu-latest-amd64) (push) Successful in 2m49s
act_runtime / build_images (node:20-bullseye-slim, ubuntu-latest) (push) Successful in 18s
act_runtime / build_images (node:20-bullseye-slim, ubuntu-latest-amd64) (push) Successful in 18s
Image builds / build_images (renovate) (push) Successful in 56s
KeyDB / build-key-db-image (push) Successful in 20s
All checks were successful
act_runtime / build_images (node:20-bookworm-slim, ubuntu-latest) (push) Successful in 2m41s
act_runtime / build_images (node:20-bookworm-slim, ubuntu-latest-amd64) (push) Successful in 2m49s
act_runtime / build_images (node:20-bullseye-slim, ubuntu-latest) (push) Successful in 18s
act_runtime / build_images (node:20-bullseye-slim, ubuntu-latest-amd64) (push) Successful in 18s
Image builds / build_images (renovate) (push) Successful in 56s
KeyDB / build-key-db-image (push) Successful in 20s
This commit is contained in:
parent
a6f43b0792
commit
0fd351d71d
2 changed files with 21 additions and 2 deletions
|
@ -9,6 +9,7 @@ on:
|
|||
|
||||
env:
|
||||
TAGS: '{"ubuntu-latest": {"node:20-bullseye-slim": "20.04-arm64","node:20-bookworm-slim": "arm64"},"ubuntu-latest-amd64": {"node:20-bullseye-slim": "20.04-amd64","node:20-bookworm-slim": "amd64"}}'
|
||||
VERSIONS: '{"node:20-bullseye-slim": {"llvm": "13"},"node:20-bookworm-slim": {"llvm": "16"}}'
|
||||
|
||||
jobs:
|
||||
build_images:
|
||||
|
@ -42,3 +43,4 @@ jobs:
|
|||
tags: code.icb4dc0.de/infrastructure/images/act_runtime:${{ fromJSON(env.TAGS)[matrix.os][matrix.base] }}
|
||||
build-args: |
|
||||
BASE_IMAGE=${{ matrix.base }}
|
||||
LLVM_VERSION=${{ fromJSON(env.VERSIONS)[matrix.base]["llvm"] }}
|
|
@ -1,11 +1,28 @@
|
|||
ARG BASE_IMAGE=node:20-bookworm-slim
|
||||
ARG LLVM_VERSION=16
|
||||
|
||||
FROM ${BASE_IMAGE}
|
||||
|
||||
RUN --mount=type=cache,target=/var/lib/apt \
|
||||
--mount=type=cache,target=/var/lib/cache \
|
||||
apt-get update && \
|
||||
apt-get install -y sudo git-lfs ca-certificates curl jq gnupg gcc make unzip libgraphite2-3 zstd && \
|
||||
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 && \
|
||||
ln -s /usr/lib/llvm-16/bin/clangd /usr/bin/cland && \
|
||||
ln -s -f /usr/lib/llvm-16/bin/llc /usr/bin/ && \
|
||||
mkdir -p /etc/apt/keyrings/ && \
|
||||
curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg && \
|
||||
echo \
|
||||
|
|
Loading…
Reference in a new issue