Browse Source

(airflow) - Added no_proxy env variable

Added no_proxy environment variable to be able to reach internal
repos when http_proxy is used.

Change-Id: If23fb644bfc2a6486e9089ad5ca1eb21f81e7df6
changes/32/683032/2
Ahmad Mahmoudi 2 years ago
parent
commit
f42e85d7ce
2 changed files with 3 additions and 1 deletions
  1. +1
    -1
      Makefile
  2. +2
    -0
      tools/airflow_image_run.sh

+ 1
- 1
Makefile View File

@ -81,7 +81,7 @@ tests:
.PHONY: run
run:
USE_PROXY=$(USE_PROXY) PROXY=$(PROXY) $(SCRIPT) $(IMAGE)
USE_PROXY=$(USE_PROXY) PROXY=$(PROXY) NO_PROXY=$(NO_PROXY) $(SCRIPT) $(IMAGE)
_BASE_IMAGE_ARG := $(if $(DISTRO_BASE_IMAGE),--build-arg FROM="${DISTRO_BASE_IMAGE}" ,)
ifeq ($(IMAGE_NAME), airflow)


+ 2
- 0
tools/airflow_image_run.sh View File

@ -17,12 +17,14 @@ set -x
IMAGE=$1
USE_PROXY=${USE_PROXY:-false}
NO_PROXY=${NO_PROXY:-}
if [ "${USE_PROXY}" == "true" ]; then
TEST_RESP="$(docker run \
-p 8080:8080 \
--env HTTP_PROXY="${PROXY}" \
--env HTTPS_PROXY="${PROXY}" \
--env NO_PROXY="${NO_PROXY}" \
--name airflow_test ${IMAGE} \
quicktest)"
else


Loading…
Cancel
Save