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,16 @@
|
||||
#!/usr/bin/env bash
|
||||
set -eu
|
||||
|
||||
# The stock image waits for the Docker s6 service to report "ready". On slow
|
||||
# nested hosts s6-notifyoncheck can time out before dockerd finishes starting,
|
||||
# leaving act_runner blocked forever. Wait for the daemon itself instead.
|
||||
while ! docker info >/dev/null 2>&1; do
|
||||
sleep 1
|
||||
done
|
||||
|
||||
# Start the Docker daemon that CI jobs are allowed to use. It is itself inside
|
||||
# a gVisor sandbox and is completely separate from the privileged runner
|
||||
# daemon.
|
||||
/usr/local/bin/start-sandboxed-dind.sh
|
||||
|
||||
exec /usr/local/bin/run.sh
|
||||
Reference in new issue
Block a user