Run as container? #8
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
unix:///var/run/docker.sock
.drone.yml
Yes, that'll be nice.
And maybe we will use act_runner to build act_runner one day.
Instead of a
.drone.yml
you may use Gitea Actions, e.g..gitea/workflows/release.yml
?Something similar to ...
Hi, how to get the actions plugin from a local repo instead of https://gitea.com/actions/
?
Currently it hasn't been supported. But you can use remote action plugins.
Any website implemented git http protocol has been supported.
Are there any docker images for act_runner yet? If not, I just created one that is successfully running on my local machine and connecting to my self hosted gitea.
If there are no images yet, my goal would also be to build a helm chart with dind approach.
There are no official binaries and images yet, because we are waiting https://github.com/go-gitea/gitea/pull/22803 merge so that we can begin building
act_runner
official binaries and images viaact_runner
.Official binaries are now in https://dl.gitea.com/act_runner/ . So how does one create official docker/OCI images from those?
Some PRs want to fix it.
@ptman you can give this a try in the meantime https://github.com/vegardit/docker-gitea-act-runner
I opened #84 as a simple proposal, which includes:
a) A very simple Dockerfile for act_runner.
b) A second Dockerfile for a task executor that has Docker and NodeJS.
c) Sets
TaskInput.privileged=true
Taken together allows for running
act_runner
as a container, which executes its tasks by launching containers which themselves support Docker-in-Docker, allowing for the use ofdocker run
,docker compose
, etc. inside workflows*.The process would be something like:
docker run/compose
inside workflows without dind by accessing/var/run/docker.sock
on the host, there would be no way to guarantee cleanup, especially if tasks failed. In contrast, with dind, when the parent task container is destroyed by act_runner, any child containers will go with it.Closed by #84