mirror of
https://github.com/getsentry/self-hosted.git
synced 2025-12-08 19:46:14 +00:00
This fixes [errors early in the installer run not getting reported correctly](https://github.com/getsentry/self-hosted/issues/1884) and [jq's docker build not using the proxy config correctly](https://github.com/getsentry/self-hosted/issues/1871)
24 lines
716 B
Bash
24 lines
716 B
Bash
if [ "${GITHUB_ACTIONS:-}" = "true" ]; then
|
|
_group="::group::"
|
|
_endgroup="::endgroup::"
|
|
else
|
|
_group="▶ "
|
|
_endgroup=""
|
|
fi
|
|
|
|
echo "${_group}Initializing Docker Compose ..."
|
|
|
|
# Some environments still use `docker-compose` even for Docker Compose v2.
|
|
dc_base="$(docker compose version &>/dev/null && echo 'docker compose' || echo 'docker-compose')"
|
|
if [[ "$(basename $0)" = "install.sh" ]]; then
|
|
dc="$dc_base --ansi never --env-file ${_ENV}"
|
|
else
|
|
dc="$dc_base --ansi never"
|
|
fi
|
|
proxy_args="--build-arg http_proxy=${http_proxy:-} --build-arg https_proxy=${https_proxy:-} --build-arg no_proxy=${no_proxy:-}"
|
|
dcr="$dc run --rm"
|
|
dcb="$dc build $proxy_args"
|
|
dbuild="docker build $proxy_args"
|
|
|
|
echo "${_endgroup}"
|