2016-07-19 22:35:42 +00:00
|
|
|
.PHONY: all
|
|
|
|
|
2016-09-02 17:56:56 +00:00
|
|
|
QUAY_DOMAIN_NAME := quay.io
|
|
|
|
QUAY_REGISTRY_USER := kubernetes_incubator
|
2016-08-31 00:04:43 +00:00
|
|
|
DOCKER_IMAGE_NAME := node-feature-discovery
|
2016-07-19 22:35:42 +00:00
|
|
|
|
|
|
|
VERSION := $(shell git describe --tags --dirty --always)
|
|
|
|
|
|
|
|
all: docker
|
|
|
|
|
2016-09-02 17:56:56 +00:00
|
|
|
# To override QUAY_REGISTRY_USER use the -e option as follows:
|
2016-12-09 19:32:39 +00:00
|
|
|
# QUAY_REGISTRY_USER=<my-username> make docker -e.
|
2016-07-19 22:35:42 +00:00
|
|
|
docker:
|
2016-12-09 19:32:39 +00:00
|
|
|
docker build --build-arg NFD_VERSION=$(VERSION) \
|
2018-02-02 09:31:07 +00:00
|
|
|
--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) \
|
2016-12-09 19:32:39 +00:00
|
|
|
-t $(QUAY_DOMAIN_NAME)/$(QUAY_REGISTRY_USER)/$(DOCKER_IMAGE_NAME):$(VERSION) ./
|