storj/cmd/satellite/entrypoint
Matt Robinson a5af25c9c2
Limit Jenkins to only one build at a time (#885)
* Fix docker images, again

* Limit jenkins to only one build of a branch at a time
2018-12-17 11:54:32 -05:00

23 lines
490 B
Bash
Executable File

#!/bin/sh
set -euo pipefail
if [[ ! -d "${CONF_PATH}" ]]; then
./satellite setup
fi
RUN_PARAMS="${RUN_PARAMS:-} --config-dir ${CONF_PATH}"
if [[ -n "${OVERLAY_URL:-}" ]]; then
RUN_PARAMS="${RUN_PARAMS} --overlay.database-url ${OVERLAY_URL}"
fi
if [[ -n "${API_KEY}" ]]; then
export STORJ_POINTER_DB_AUTH_API_KEY="${API_KEY}"
fi
if [[ -n "${BOOTSTRAP_ADDR:-}" ]]; then
RUN_PARAMS="${RUN_PARAMS} --kademlia.bootstrap-addr ${BOOTSTRAP_ADDR}"
fi
exec ./satellite run $RUN_PARAMS "$@"