Use act_runner without docker seems impossible? #613
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
We are a small office and don't want to spend too much resources on maintaining a complex build environment. We just left Gitlab and moved over to Gitea, because Gitea is claiming to be lightweight.
Now I just try to setup a single build machine for all our projects by using the act_runner without docker.
According to the documentation the runner can be used without docker.
However after registering the runner and starting it up with the daemon parameter, it won't start because it can't find docker.
We don't want to maintain a docker build environment, we just want the runner to run some scripts on the local machine.
Am I missing the lightweight concept here?
I can't find anything about how to configure act_runner as a service without using docker, How to do this?
Could you share the labels you've setup for your runner? If you don't have any set, then by default it uses the docker configuration, but if the runner has only labels that are setup as "host-only" then the runner won't try to connect to the docker daemon.
@jjanvier you need to add a label
"self-hosted:host"in therunnersection in youractrunner.yamlHere is an example:
I'm having the same problem. We don't have docker installed on our windows build machine and even after specifying
"labels": ["windows:host"]the job still fails after trying to pull ubuntu-latest with:You can see more details in #626
I tried debugging act_runner and this might be actually a problem with how gitea handles labels for reusable workflows https://github.com/go-gitea/gitea/issues/32348
Currently we have 2 runners with labels:
rocky-8- which runs on linux host with docker andwindowswhich runs directly on host.At some point gitea pushed a job with label
rocky-8towindowsmachine and it got cached. Since windows runner doesn't know aboutrocky-8label, it defaulted togitea/runner-images:ubuntu-latesthttps://gitea.com/gitea/act_runner/src/commit/8bc0275e74af3516cb9d952e144e48405c084aa5/internal/pkg/labels/labels.go#L82and failed, since docker is not installed.
After clearing cache modifying reusable workflow to support windows via input parameter and making sure to pass this input parameter:
everything worked.