Run as container? #8
Labels
No Label
kind
bug
kind
build
kind/compatible
kind
dependencies
kind
docs
kind
enhancement
kind
feature
kind
help wanted
kind
proposal
kind
refactor
related
act
related
environment
related
exec
related
gitea
related
workflow
reviewed
confirmed
reviewed
duplicate
reviewed
invalid
reviewed
needs feedback
reviewed
wontfix
reviewed
workaround
No Milestone
No Assignees
10 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: gitea/act_runner#8
Loading…
Reference in New Issue
Block a user
No description provided.
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?
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
@jokay
Regarding your example, I'm curious what image labels you are using for your runners?
I'm using the github.com/catthehacker/ docker images and have only been able to build container images targeted for the
linux/amd64
andlinux/arm64
platforms.Opened an issue about it, but have yet to hear anything back.
Well it's only a sample (not used in production).
I'm currently still using GitLab on amd64 and a GitLab Runner(s) on arm64.
I would like to use Gitea instead of GitLab one day to have a less bloated experience running smootly on a RasperryPi setup 😉 but didn't have time to migrate all the workflow to Gitea Actions yet.
Same.. well, straddled between the two and haven't fully committed 😅
(pending finding a solution to these cross-platform builds.. might need a custom runner)
Once you have a good process for the first couple, I imagine the rest will go a lot quicker 👍