#Gitlab Runner Docs issue
1 messages · Page 1 of 1 (latest)
Huh okay 🤔
So if you just do export PATH=$PATH:/root/.local/bin before the dagger command it'll work I think
But that does mean that our docs for this look wrong
I am running this on a self hosted running in K8s. So... I don't know how that affects the paths.
I'll try to prefix that for now.
I think this is why the official CLI image would be killer. Would just mean all the setup between Gitlab / Github / whatever else are more or less the same. Obviously you know this, hah. Just trying to put a little pressure on getting an image. (;
Yeah ofc! We'll definitely be looking at doing that soon, but just to set expectations, we're pretty busy at kubecon this week! But once that finishes up, I don't think there are any major blockers
The prefix fixed it! I can operate with this for now. Getting the dagger CLI to talk to me dagger engine properly I'm sure will be a bit of task on these self hosted runners.
No worries about the timing. Good luck at KubeCon. Hope y'all get some good traction. Wish I was there.
hey, just to add to this, some context: I am running gitlab with runners as separate VM's not on k8s like the original poster @stable fractal. I ran into the 'dagger not found' issue as well as another where 'docker' wasn't found using the guide here: https://docs.dagger.io/integrations/734201/gitlab. I am not an expert with the gitlab cicd platform yet so after some trial and error I got it working with the following as a base template to start building on:
image: docker:${DOCKER_VERSION}
services:
- docker:${DOCKER_VERSION}
variables:
DOCKER_HOST: tcp://docker:2376
DOCKER_TLS_VERIFY: '1'
DOCKER_TLS_CERTDIR: '/certs'
DOCKER_CERT_PATH: '/certs/client'
DOCKER_DRIVER: overlay2
DOCKER_VERSION: 26.1.0
.dagger:
extends: [.docker]
before_script:
- apk add curl
- curl -L https://dl.dagger.io/dagger/install.sh | BIN_DIR=$HOME/.local/bin sh
- export PATH=$PATH:/root/.local/bin
build:
extends: [.dagger]
script:
# use daggerverse function from the quickstart guide
- dagger -m github.com/shykes/daggerverse/hello@v0.1.2 call hello
# for ephemeral runners only: override the default docker stop timeout and
# give the Dagger Engine more time to push cache data to Dagger Cloud
- docker stop -t 300 $(docker ps --filter name="dagger-engine-*" -q)
note that the image in the .docker section is set to docker:26.1.0 and not alpine.
and the export PATH=$PATH:/root/.local/bin is set in the .dagger section as recommended by @granite ridge .
👋
changing - curl -L https://dl.dagger.io/dagger/install.sh | BIN_DIR=$HOME/.local/bin sh to - curl -L https://dl.dagger.io/dagger/install.sh | BIN_DIR=/usr/local/bin sh should also work. Sending a PR to fix the docs in a minute