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
|
sysctl -p /etc/sysctl.d/podman.conf
|
||||||
|
|
||||||
# Enable and start Podman socket
|
# Enable and start Podman socket
|
||||||
|
echo 'podman_user="podman"' >> /etc/rc.conf
|
||||||
|
|
||||||
rc-update add podman
|
rc-update add podman
|
||||||
rc-service podman start
|
rc-service podman start
|
||||||
|
chmod 666 /run/podman/podman.sock
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
user = "podman"
|
user = "podman"
|
||||||
|
capabilities = ["DAC_OVERRIDE"]
|
||||||
|
|
||||||
[service]
|
[service]
|
||||||
name = "gitea-runner"
|
name = "gitea-runner"
|
||||||
@@ -20,8 +21,11 @@ target = "/config"
|
|||||||
|
|
||||||
[[mounts]]
|
[[mounts]]
|
||||||
typ = "bind"
|
typ = "bind"
|
||||||
source = "/run/podman/podman.sock"
|
source = "/tmp/storage-run-$(id -u)/podman/podman.sock"
|
||||||
target = "/var/run/docker.sock"
|
target = "/var/run/docker.sock"
|
||||||
|
|
||||||
|
[[networks]]
|
||||||
|
name = "gitea-net"
|
||||||
|
|
||||||
[[networks]]
|
[[networks]]
|
||||||
name = "gitea-net"
|
name = "gitea-net"
|
||||||
@@ -69,7 +69,7 @@ container:
|
|||||||
# Specifies the network to which the container will connect.
|
# Specifies the network to which the container will connect.
|
||||||
# Could be host, bridge or the name of a custom network.
|
# Could be host, bridge or the name of a custom network.
|
||||||
# If it's empty, act_runner will create a network automatically.
|
# 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).
|
# Whether to use privileged mode or not when launching task containers (privileged mode is required for Docker-in-Docker).
|
||||||
privileged: false
|
privileged: false
|
||||||
# And other options to be used when the container is started (eg, --add-host=my.gitea.url:host-gateway).
|
# 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