Import OSCW runner
All checks were successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
2022-07-24 22:38:42 +02:00
commit b9cfdb1fd5
5 changed files with 98 additions and 0 deletions

21
files/entrypoint.sh Normal file
View File

@@ -0,0 +1,21 @@
#!/bin/bash
set -e
# no arguments passed
# or first arg is `-f` or `--some-option`
if [ "$#" -eq 0 -o "${1#-}" != "$1" ]; then
# add our default arguments
set -- dockerd \
--host=unix:///var/run/docker.sock \
--host=tcp://0.0.0.0:2375 \
--storage-driver=vfs \
"$@"
fi
if [ "$1" = 'dockerd' ]; then
# if we're running Docker, let's pipe through dind
# (and we'll run dind explicitly with "sh" since its shebang is /bin/bash)
set -- sh "$(which dind)" "$@"
fi
exec "$@"