Skip to content

Commit 0fca38e

Browse files
author
Daniel Bunte
committed
fix(install): Adds separate prox-args for podman build vs. podman-compose build; Substitutes occurences of
1 parent 8034a6e commit 0fca38e

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

install/dc-detect-version.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,11 @@ else
3737
dc="$dc_base $NO_ANSI"
3838
fi
3939

40+
proxy_args="--build-arg http_proxy=${http_proxy:-} --build-arg https_proxy=${https_proxy:-} --build-arg no_proxy=${no_proxy:-}"
4041
if [[ "$CONTAINER_ENGINE" == "docker" ]]; then
41-
proxy_args="--build-arg http_proxy=${http_proxy:-} --build-arg https_proxy=${https_proxy:-} --build-arg no_proxy=${no_proxy:-}"
42+
proxy_args_dc=$proxy_args
4243
elif [[ "$CONTAINER_ENGINE" == "podman" ]]; then
43-
proxy_args="--podman-build-args http_proxy=${http_proxy:-},https_proxy=${https_proxy:-},no_proxy=${no_proxy:-}"
44+
proxy_args_dc="--podman-build-args http_proxy=${http_proxy:-},https_proxy=${https_proxy:-},no_proxy=${no_proxy:-}"
4445
fi
4546
dcr="$dc run --pull=never --rm"
4647
dcb="$dc build $proxy_args"

install/error-handling.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ send_event() {
2727
local breadcrumbs=$5
2828
local fingerprint_value=$(
2929
echo -n "$cmd_exit $error_msg $traceback" |
30-
docker run -i --rm busybox md5sum |
30+
$CONTAINER_ENGINE run -i --rm busybox md5sum |
3131
cut -d' ' -f1
3232
)
3333
local envelope_file="sentry-envelope-${fingerprint_value}"
@@ -151,7 +151,7 @@ fi
151151

152152
# Make sure we can use sentry-cli if we need it.
153153
if [ "$REPORT_SELF_HOSTED_ISSUES" == 1 ]; then
154-
if ! docker pull getsentry/sentry-cli:latest; then
154+
if ! $CONTAINER_ENGINE pull getsentry/sentry-cli:latest; then
155155
echo "Failed to pull sentry-cli, won't report to Sentry after all."
156156
export REPORT_SELF_HOSTED_ISSUES=0
157157
fi

0 commit comments

Comments
 (0)