trigger build
Some checks failed
Build images / build-images-amd64 (push) Failing after 8m59s
Build images / build-images-arm64 (push) Successful in 9m41s
Build images / update-images-manifests (push) Has been skipped

This commit is contained in:
Maciej Lebiest 2024-02-23 09:04:55 +01:00
parent b6115e9625
commit c73941eb90

View file

@ -195,6 +195,7 @@ podman run --rm -it gitea-runner:latest generate-config > /root/act-runner/runn
``` ```
Update registration file path in config and privileged mode. Update registration file path in config and privileged mode.
```bash ```bash
sed -i 's`file: .runner`file: /etc/runner/registration.json`g' /root/act-runner/runner/config.yaml; sed -i 's`file: .runner`file: /etc/runner/registration.json`g' /root/act-runner/runner/config.yaml;
sed -i 's`privileged: false`privileged: true`g' /root/act-runner/runner/config.yaml; sed -i 's`privileged: false`privileged: true`g' /root/act-runner/runner/config.yaml;
@ -204,6 +205,7 @@ Currently you **need** to set `docker_host: "-"` in "container" section
to make this setup with mounted docker.sock work. to make this setup with mounted docker.sock work.
Fix perms on those dirs: Fix perms on those dirs:
```bash ```bash
podman run --rm -it \ podman run --rm -it \
-v /root/act-runner/:/data:z,rw \ -v /root/act-runner/:/data:z,rw \
@ -216,6 +218,7 @@ podman run --rm -it \
Register runner. Register runner.
example value for labels can be `ubuntu-latest:docker://quay.io/podman/stable`. example value for labels can be `ubuntu-latest:docker://quay.io/podman/stable`.
```bash ```bash
podman run --rm -it \ podman run --rm -it \
-v /root/act-runner/runner/:/etc/runner:z,rw \ -v /root/act-runner/runner/:/etc/runner:z,rw \
@ -225,6 +228,7 @@ podman run --rm -it \
``` ```
Start container acting as podman/docker (use `--init` to get rid of zombies): Start container acting as podman/docker (use `--init` to get rid of zombies):
```bash ```bash
podman run --rm -d --privileged --name gitea-podman \ podman run --rm -d --privileged --name gitea-podman \
--init \ --init \
@ -235,6 +239,7 @@ podman run --rm -d --privileged --name gitea-podman \
``` ```
Now start container with runner Now start container with runner
```bash ```bash
podman run --rm -d --name gitea-runner \ podman run --rm -d --name gitea-runner \
-v /root/act-runner/runner/:/etc/runner:rw,Z \ -v /root/act-runner/runner/:/etc/runner:rw,Z \
@ -244,6 +249,7 @@ podman run --rm -d --name gitea-runner \
``` ```
Now generate systemd services for these containers Now generate systemd services for these containers
```bash ```bash
podman generate systemd --new --name gitea-podman > /etc/systemd/system/gitea-podman.service; podman generate systemd --new --name gitea-podman > /etc/systemd/system/gitea-podman.service;
podman generate systemd --new --name gitea-runner > /etc/systemd/system/gitea-runner.service; podman generate systemd --new --name gitea-runner > /etc/systemd/system/gitea-runner.service;