mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2024-12-14 11:57:51 +00:00
12d6c2410e
Add a new Makefile target for regenerating these files. Also, add a note that the files are auto-generated, including instructions how to re-generate them. Renames the mock files, using the defaults provided by the mockery tool, in order to make their generation easier.
21 lines
673 B
Makefile
21 lines
673 B
Makefile
.PHONY: all
|
|
|
|
IMAGE_BUILD_CMD := docker build
|
|
|
|
QUAY_DOMAIN_NAME := quay.io
|
|
QUAY_REGISTRY_USER := kubernetes_incubator
|
|
DOCKER_IMAGE_NAME := node-feature-discovery
|
|
|
|
VERSION := $(shell git describe --tags --dirty --always)
|
|
|
|
all: image
|
|
|
|
# To override QUAY_REGISTRY_USER use the -e option as follows:
|
|
# QUAY_REGISTRY_USER=<my-username> make docker -e.
|
|
image:
|
|
$(IMAGE_BUILD_CMD) --build-arg NFD_VERSION=$(VERSION) \
|
|
-t $(QUAY_DOMAIN_NAME)/$(QUAY_REGISTRY_USER)/$(DOCKER_IMAGE_NAME):$(VERSION) ./
|
|
|
|
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'"
|