mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2024-12-14 11:57:51 +00:00
Export proxy env vars inside docker build
Without correct proxy settings propagated to docker build it is not possible to build node-feature-discovery from behind a proxy server, e.g. in corporate networks. This patch fixes the issue by exporting all http(s) proxy related environment variables as build-time variables.
This commit is contained in:
parent
b834cf65d2
commit
bb32ef83f7
1 changed files with 6 additions and 0 deletions
6
Makefile
6
Makefile
|
@ -12,4 +12,10 @@ all: docker
|
|||
# QUAY_REGISTRY_USER=<my-username> make docker -e.
|
||||
docker:
|
||||
docker build --build-arg NFD_VERSION=$(VERSION) \
|
||||
--build-arg http_proxy=$(http_proxy) \
|
||||
--build-arg HTTP_PROXY=$(HTTP_PROXY) \
|
||||
--build-arg https_proxy=$(https_proxy) \
|
||||
--build-arg HTTPS_PROXY=$(HTTPS_PROXY) \
|
||||
--build-arg no_proxy=$(no_proxy) \
|
||||
--build-arg NO_PROXY=$(NO_PROXY) \
|
||||
-t $(QUAY_DOMAIN_NAME)/$(QUAY_REGISTRY_USER)/$(DOCKER_IMAGE_NAME):$(VERSION) ./
|
||||
|
|
Loading…
Reference in a new issue