Fix gitea?
This commit is contained in:
@@ -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
|
||||
@@ -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"
|
||||
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user