From 40dec1b6fd022caf3cdcc03a4a2c4530fb457f31 Mon Sep 17 00:00:00 2001 From: Richard Robert Reitz Date: Tue, 28 Oct 2025 15:30:10 +0100 Subject: [PATCH] feat(edge): Enabled the buildkit docker driver for rootless operation, but with appamor requirement instead --- internal/spec/spec.go | 2 +- runner/Dockerfile | 1 - runner/entrypoint.sh | 2 ++ 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/spec/spec.go b/internal/spec/spec.go index 163355a..059f814 100644 --- a/internal/spec/spec.go +++ b/internal/spec/spec.go @@ -158,7 +158,7 @@ func GetPodSpec(gitHubScope GitHubScopeDetails, bootstrapParams params.Bootstrap Containers: []corev1.Container{ { Name: "runner", - Image: "edp.buildth.ing/devfw-cicd/garm-act-runner:1", + Image: bootstrapParams.Image, ImagePullPolicy: "Always", Env: envs, VolumeMounts: []corev1.VolumeMount{ diff --git a/runner/Dockerfile b/runner/Dockerfile index d1e45a8..6296f46 100644 --- a/runner/Dockerfile +++ b/runner/Dockerfile @@ -1,4 +1,3 @@ -# docker run -e METADATA_URL=https://garm.garm-provider-test.t09.de/api/v1/metadata -e CALLBACK_URL=https://garm.garm-provider-test.t09.de/api/v1/callbacks -e GITHUB_URL=https://garm-provider-test.t09.de/ -e RUNNER_NAME="lala" -e BEARER_TOKEN="$BEARER_TOKEN" test FROM ghcr.io/catthehacker/ubuntu:act-22.04 USER root diff --git a/runner/entrypoint.sh b/runner/entrypoint.sh index 4c68353..c0db935 100755 --- a/runner/entrypoint.sh +++ b/runner/entrypoint.sh @@ -39,4 +39,6 @@ forgejo-runner generate-config > config.yml; unset RUNNER_SECRET unset BEARER_TOKEN +docker buildx create --use --name sidecar unix:///run/user/1000/buildkit/buildkitd.sock + /bin/forgejo-runner --config config.yml daemon