Hi,
I'm currently trying to setup dagger in a self-hosted runner.
I deployed this scale-set in order to test with a local dagger cache.
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: dagger-gha-runner-scale-set
spec:
releaseName: dagger-gha-runner-scale-set
chart:
...
values:
runnerGroup: "default"
githubConfigUrl: "https://github.com/Smana/demo-cloud-native-ref"
githubConfigSecret: gha-runner-scale-set
maxRunners: 5
containerMode:
type: "dind"
Then this scaler-set is used in a workflow as follows:
...
test-cache:
name: Testing in-cluster cache
runs-on: dagger-gha-runner-scale-set
container:
image: ghcr.io/actions/actions-runner:latest
env:
_EXPERIMENTAL_DAGGER_RUNNER_HOST: "tcp://dagger-engine:8080"
cloud-token: ${{ secrets.DAGGER_CLOUD_TOKEN }}
steps:
- name: Simulate a build with heavy packages
uses: dagger/dagger-for-github@v5
with:
version: "latest"
verb: call
module: github.com/shykes/daggerverse.git/wolfi@dfb1f91fa463b779021d65011f0060f7decda0ba
args: container --packages "python3,py3-pip,go,rust,clang"
I get the error
...
VERSION=latest
if [[ "$VERSION" == "latest" ]]; then
VERSION=
fi
# The install.sh script creates path ${prefix_dir}/bin
cd "$prefix_dir" && { \
curl -sL https://dl.dagger.io/dagger/install.sh 2>/dev/null | \
DAGGER_VERSION=$VERSION sh; }
shell: bash --noprofile --norc -e -o pipefail {0}
env:
_EXPERIMENTAL_DAGGER_RUNNER_HOST: tcp://dagger-engine:8080
cloud-token: ***
The default container image used is ghcr.io/actions/actions-runner:latest and I guess there are preparation steps missing.
The archived documentation (https://archive.docs.dagger.io/0.9/934191/eks-github-karpenter/) uses a deprecated method to run self-hosted runners.
Any guidance would be welcome 🙂