Fix gitea?

This commit is contained in:
Maurice
2025-10-04 21:00:59 +02:00
parent 7f45140c73
commit 2a519e9808
3 changed files with 10 additions and 3 deletions

View File

@@ -36,5 +36,8 @@ echo "net.ipv4.ip_unprivileged_port_start=53" >> /etc/sysctl.d/podman.conf
sysctl -p /etc/sysctl.d/podman.conf
# Enable and start Podman socket
echo 'podman_user="podman"' >> /etc/rc.conf
rc-update add podman
rc-service podman start
rc-service podman start
chmod 666 /run/podman/podman.sock

View File

@@ -1,4 +1,5 @@
user = "podman"
capabilities = ["DAC_OVERRIDE"]
[service]
name = "gitea-runner"
@@ -20,8 +21,11 @@ target = "/config"
[[mounts]]
typ = "bind"
source = "/run/podman/podman.sock"
source = "/tmp/storage-run-$(id -u)/podman/podman.sock"
target = "/var/run/docker.sock"
[[networks]]
name = "gitea-net"
[[networks]]
name = "gitea-net"

View File

@@ -69,7 +69,7 @@ container:
# Specifies the network to which the container will connect.
# Could be host, bridge or the name of a custom network.
# If it's empty, act_runner will create a network automatically.
network: ""
network: "gitea-net"
# Whether to use privileged mode or not when launching task containers (privileged mode is required for Docker-in-Docker).
privileged: false
# And other options to be used when the container is started (eg, --add-host=my.gitea.url:host-gateway).