Skip to content
Merged
2 changes: 1 addition & 1 deletion install/bootstrap-s3-nodestore.sh
Original file line number Diff line number Diff line change
@@ -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:-}" -e "http_proxy=${http_proxy:-}" -e "https_proxy=${https_proxy:-}" -e "no_proxy=${no_proxy:-}" seaweedfs apk add --no-cache s3cmd
$dcep seaweedfs apk add --no-cache s3cmd
$dc exec seaweedfs mkdir -p /data/idx/
s3cmd="$dc exec seaweedfs s3cmd"

Expand Down
2 changes: 2 additions & 0 deletions install/dc-detect-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ else
fi

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:-}"
# Shortcut for docker compose exec with http proxy environment variables
dcep="$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:-}\""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
dcep="$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:-}\""
dcx="$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:-}\""

Let's rename this to dcx (short for docker compose exec) and find all relevant occurances in the codebase and replace them with dcx (not just in install/bootstrap-s3-nodestore.sh)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Renamed to dcx in commit 5375e5b. I've searched the codebase and the only occurrence of the proxy pattern in exec was in bootstrap-s3-nodestore.sh, which is now updated to use $dcx.

if [[ "$CONTAINER_ENGINE" == "podman" ]]; then
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
Expand Down