17 lines
546 B
Bash
17 lines
546 B
Bash
#!/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
|