File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 37
37
dc=" $dc_base $NO_ANSI "
38
38
fi
39
39
40
+ proxy_args=" --build-arg http_proxy=${http_proxy:- } --build-arg https_proxy=${https_proxy:- } --build-arg no_proxy=${no_proxy:- } "
40
41
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
42
43
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:- } "
44
45
fi
45
46
dcr=" $dc run --pull=never --rm"
46
47
dcb=" $dc build $proxy_args "
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ send_event() {
27
27
local breadcrumbs=$5
28
28
local fingerprint_value=$(
29
29
echo -n " $cmd_exit $error_msg $traceback " |
30
- docker run -i --rm busybox md5sum |
30
+ $CONTAINER_ENGINE run -i --rm busybox md5sum |
31
31
cut -d' ' -f1
32
32
)
33
33
local envelope_file=" sentry-envelope-${fingerprint_value} "
151
151
152
152
# Make sure we can use sentry-cli if we need it.
153
153
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
155
155
echo " Failed to pull sentry-cli, won't report to Sentry after all."
156
156
export REPORT_SELF_HOSTED_ISSUES=0
157
157
fi
You can’t perform that action at this time.
0 commit comments