2016-07-19 22:35:42 +00:00
|
|
|
.PHONY: all
|
|
|
|
|
2018-09-12 13:40:56 +00:00
|
|
|
IMAGE_BUILD_CMD := docker build
|
|
|
|
|
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)
|
|
|
|
|
2018-09-12 13:40:56 +00:00
|
|
|
all: image
|
2016-07-19 22:35:42 +00:00
|
|
|
|
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.
|
2018-09-12 13:40:56 +00:00
|
|
|
image:
|
|
|
|
$(IMAGE_BUILD_CMD) --build-arg NFD_VERSION=$(VERSION) \
|
2016-12-09 19:32:39 +00:00
|
|
|
-t $(QUAY_DOMAIN_NAME)/$(QUAY_REGISTRY_USER)/$(DOCKER_IMAGE_NAME):$(VERSION) ./
|
2018-07-09 10:12:11 +00:00
|
|
|
|
|
|
|
mock:
|
|
|
|
mockery --name=FeatureSource --dir=source --inpkg --note="Re-generate by running 'make mock'"
|
|
|
|
mockery --name=APIHelpers --inpkg --note="Re-generate by running 'make mock'"
|