mirror of
https://github.com/openziti/zrok.git
synced 2025-08-19 04:06:18 +02:00
call the Docker self-hosting compose project 'zrok-instance'
This commit is contained in:
23
docker/compose/zrok-instance/bootstrap-controller.bash
Executable file
23
docker/compose/zrok-instance/bootstrap-controller.bash
Executable file
@@ -0,0 +1,23 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -o errexit
|
||||
set -o nounset
|
||||
set -o pipefail
|
||||
set -o xtrace
|
||||
|
||||
for arg in "${@}"; do
|
||||
if [[ ! "${arg}" =~ ^- && -s "${arg}" ]]; then
|
||||
CONFIG="${arg}"
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
if [[ -z "${CONFIG}" ]]; then
|
||||
echo "ERROR: args '${*}' do not contain a non-empty config file" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# config.yml is first param
|
||||
zrok admin bootstrap --skip-frontend "${CONFIG}"
|
||||
|
||||
exec "$@"
|
Reference in New Issue
Block a user