From b9a1db2601135e34ae9e59e927d3a0e8bc8d0a4e Mon Sep 17 00:00:00 2001 From: Gabriela Cervantes Date: Mon, 15 May 2023 15:57:29 +0000 Subject: [PATCH] kata-deploy: Add http_proxy as part of the docker build Add http_proxy and https_proxy as part of the docker build arguments in order to build properly when we are behind a proxy. Fixes #6834 Signed-off-by: Gabriela Cervantes --- .../kata-deploy/local-build/kata-deploy-binaries-in-docker.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/packaging/kata-deploy/local-build/kata-deploy-binaries-in-docker.sh b/tools/packaging/kata-deploy/local-build/kata-deploy-binaries-in-docker.sh index defb338d97..70460a33bc 100755 --- a/tools/packaging/kata-deploy/local-build/kata-deploy-binaries-in-docker.sh +++ b/tools/packaging/kata-deploy/local-build/kata-deploy-binaries-in-docker.sh @@ -15,6 +15,8 @@ kata_dir=$(realpath "${script_dir}/../../../../") kata_deploy_create="${script_dir}/kata-deploy-binaries.sh" uid=$(id -u ${USER}) gid=$(id -g ${USER}) +http_proxy="${http_proxy:-}" +https_proxy="${https_proxy:-}" if [ "${script_dir}" != "${PWD}" ]; then ln -sf "${script_dir}/build" "${PWD}/build" @@ -41,6 +43,8 @@ docker build -q -t build-kata-deploy \ --build-arg IMG_USER="${USER}" \ --build-arg UID=${uid} \ --build-arg GID=${gid} \ + --build-arg http_proxy="${http_proxy}" \ + --build-arg https_proxy="${https_proxy}" \ --build-arg HOST_DOCKER_GID=${docker_gid} \ "${script_dir}/dockerbuild/"