Initial commit: Gitea CI jobs in gVisor with sandboxed Docker
This commit is contained in:
commit
6c14f5d76d
17 files changed
+1084
No files matched your search
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
set -eu
|
||||
|
||||
# Do not use the stock dind entrypoint here: it always adds a TCP listener.
|
||||
# Jobs use host networking so they can resolve the "gitea" Compose service and
|
||||
# reach the internet, which would also expose tcp://127.0.0.1:2375 to them.
|
||||
# Keep the daemon on its private unix socket only.
|
||||
find /run /var/run -iname 'docker*.pid' -delete 2>/dev/null || true
|
||||
exec dockerd --host=unix:///var/run/docker.sock
|
||||
Reference in new issue
Block a user