fix(gitea): runner config for caching 2
This commit is contained in:
@@ -15,14 +15,24 @@ runner:
|
||||
cache:
|
||||
enabled: true
|
||||
dir: ""
|
||||
host: "gitea_runner"
|
||||
port: 0
|
||||
# "gitea_runner" (relying on shared networking via container.network below)
|
||||
# didn't work - job containers get their own auto-created per-task network
|
||||
# regardless of container.network (a known act_runner limitation, confirmed
|
||||
# by inspecting a live job container: it was never attached to falcon_network
|
||||
# at all). host.docker.internal resolves to that per-task network's own
|
||||
# gateway instead, which *does* route back to this container's published
|
||||
# port on the host - see https://docs.gitea.com/runner/cache/.
|
||||
host: "host.docker.internal"
|
||||
port: 8088
|
||||
external_server: ""
|
||||
|
||||
container:
|
||||
network: "falcon_network"
|
||||
network: ""
|
||||
privileged: false
|
||||
options: "-v /var/run/docker.sock:/var/run/docker.sock"
|
||||
# --add-host is what makes host.docker.internal (used for cache.host above)
|
||||
# resolve inside job containers on Linux - Docker only wires it up
|
||||
# automatically on Docker Desktop (Mac/Windows), not here.
|
||||
options: "-v /var/run/docker.sock:/var/run/docker.sock --add-host=host.docker.internal:host-gateway"
|
||||
workdir_parent: ""
|
||||
valid_volumes: []
|
||||
docker_host: ""
|
||||
|
||||
Reference in New Issue
Block a user