hs-test: create docker buildx with proxy 95/42395/2
authorMatus Fabian <[email protected]>
Thu, 27 Feb 2025 10:33:57 +0000 (05:33 -0500)
committerDave Wallace <[email protected]>
Thu, 27 Feb 2025 12:08:52 +0000 (12:08 +0000)
Type: test

Change-Id: If887916bc540a51747e342a76edc2f37d54e6b0f
Signed-off-by: Matus Fabian <[email protected]>
extras/hs-test/script/build_hst.sh

index 4e03453..9274067 100755 (executable)
@@ -44,7 +44,7 @@ if [ -d "${DOCKER_BUILD_DIR}" ] ; then
   DOCKER_HST_BUILDER="hst_builder"
   set -x
   if ! docker buildx ls --format "{{.Name}}" | grep -q "${DOCKER_HST_BUILDER}"; then
-    docker buildx create --name=${DOCKER_HST_BUILDER} --driver=docker-container --use --bootstrap || true
+    docker buildx create --use --driver-opt env.http_proxy="$HTTP_PROXY" --driver-opt env.https_proxy="$HTTP_PROXY" --driver-opt '"env.no_proxy='"$NO_PROXY"'"' --name=${DOCKER_HST_BUILDER} --driver=docker-container --use --bootstrap || true
   fi
   set -x
   DOCKER_CACHE_ARGS="--builder=${DOCKER_HST_BUILDER} --load --cache-to type=local,dest=${DOCKER_CACHE_DIR},mode=max --cache-from type=local,src=${DOCKER_CACHE_DIR}"