mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
Respect uppercase proxy variables (#3949)
* Respect uppercase proxy variables * Put http_proxy first
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
ARG BASE_IMAGE
|
||||
FROM ${BASE_IMAGE}
|
||||
USER 0
|
||||
RUN if [ -n "${HTTP_PROXY}" ]; then echo "Acquire::http::proxy \"${HTTP_PROXY}\";" >> /etc/apt/apt.conf; fi
|
||||
RUN if [ -n "${HTTPS_PROXY}" ]; then echo "Acquire::https::proxy \"${HTTPS_PROXY}\";" >> /etc/apt/apt.conf; fi
|
||||
RUN if [ -n "${http_proxy}" ]; then echo "Acquire::http::proxy \"${http_proxy}\";" >> /etc/apt/apt.conf; fi
|
||||
RUN if [ -n "${https_proxy}" ]; then echo "Acquire::https::proxy \"${https_proxy}\";" >> /etc/apt/apt.conf; fi
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends cron && \
|
||||
|
||||
+1
-1
@@ -235,7 +235,7 @@ services:
|
||||
# Manually override any http_proxy envvar that might be set, because
|
||||
# this wget does not support no_proxy. See:
|
||||
# https://github.com/getsentry/self-hosted/issues/1537
|
||||
"http_proxy='' wget -nv -t1 --spider 'http://localhost:8123/' || exit 1",
|
||||
"HTTP_PROXY='' http_proxy='' wget -nv -t1 --spider 'http://localhost:8123/' || exit 1",
|
||||
]
|
||||
interval: 10s
|
||||
timeout: 10s
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
echo "${_group}Bootstrapping seaweedfs (node store)..."
|
||||
|
||||
$dc up --wait seaweedfs postgres
|
||||
$dc exec -e "http_proxy=${http_proxy:-}" -e "https_proxy=${https_proxy:-}" -e "no_proxy=${no_proxy:-}" seaweedfs apk add --no-cache s3cmd
|
||||
$dc exec -e "HTTP_PROXY=${HTTP_PROXY:-}" -e "HTTPS_PROXY=${HTTPS_PROXY:-}" -e "NO_PROXY=${NO_PROXY:-}" -e "http_proxy=${http_proxy:-}" -e "https_proxy=${https_proxy:-}" -e "no_proxy=${no_proxy:-}" seaweedfs apk add --no-cache s3cmd
|
||||
$dc exec seaweedfs mkdir -p /data/idx/
|
||||
s3cmd="$dc exec seaweedfs s3cmd"
|
||||
|
||||
|
||||
@@ -47,9 +47,9 @@ else
|
||||
dc="$dc_base $NO_ANSI"
|
||||
fi
|
||||
|
||||
proxy_args="--build-arg http_proxy=${http_proxy:-} --build-arg https_proxy=${https_proxy:-} --build-arg no_proxy=${no_proxy:-}"
|
||||
proxy_args="--build-arg HTTP_PROXY=${HTTP_PROXY:-} --build-arg HTTPS_PROXY=${HTTPS_PROXY:-} --build-arg NO_PROXY=${NO_PROXY:-} --build-arg http_proxy=${http_proxy:-} --build-arg https_proxy=${https_proxy:-} --build-arg no_proxy=${no_proxy:-}"
|
||||
if [[ "$CONTAINER_ENGINE" == "podman" ]]; then
|
||||
proxy_args_dc="--podman-build-args http_proxy=${http_proxy:-},https_proxy=${https_proxy:-},no_proxy=${no_proxy:-}"
|
||||
proxy_args_dc="--podman-build-args HTTP_PROXY=${HTTP_PROXY:-},HTTPS_PROXY=${HTTPS_PROXY:-},NO_PROXY=${NO_PROXY:-},http_proxy=${http_proxy:-},https_proxy=${https_proxy:-},no_proxy=${no_proxy:-}"
|
||||
# Disable pod creation as these are one-off commands and creating a pod
|
||||
# prints its pod id to stdout which is messing with the output that we
|
||||
# rely on various places such as configuration generation
|
||||
|
||||
Reference in New Issue
Block a user