Skip to content

Commit

Permalink
zephyr/docker: pass http[s]_proxy variables to the container
Browse files Browse the repository at this point in the history
Support downloads from within the container.

Signed-off-by: Marc Herbert <[email protected]>
(cherry picked from commit 424da2c)
(cherry picked from commit dbcf7e1)
  • Loading branch information
marc-hb authored and lgirdwood committed Sep 26, 2023
1 parent f4d38a0 commit 4b7d52b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/sudo-cwd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,12 @@ exec_as_cwd_uid()
# Double sudo to work around some funny restriction in
# zephyr-build:/etc/sudoers: 'user' can do anything but... only as
# root.
sudo sudo -u "$cwd_user" REAL_CC="$REAL_CC" "$@"
# Passing empty http[s]_proxy is OK
# shellcheck disable=SC2154
sudo sudo -u "$cwd_user" REAL_CC="$REAL_CC" \
http_proxy="$http_proxy" https_proxy="$https_proxy" \
"$@"

exit "$?"
}

Expand Down

0 comments on commit 4b7d52b

Please sign in to comment.