(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
This commit is contained in:
parent
fe87c64f97
commit
f42e85d7ce
2
Makefile
2
Makefile
@ -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)
|
||||
|
@ -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…
x
Reference in New Issue
Block a user