mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2025-03-14 20:56:42 +00:00
Makefile: add IMAGE_BUILD_EXTRA_OPTS variable
This commit is contained in:
parent
a8e7259bf8
commit
2cfb3ade5d
2 changed files with 14 additions and 11 deletions
4
Makefile
4
Makefile
|
@ -2,6 +2,7 @@
|
|||
.FORCE:
|
||||
|
||||
IMAGE_BUILD_CMD := docker build
|
||||
IMAGE_BUILD_EXTRA_OPTS :=
|
||||
IMAGE_PUSH_CMD := docker push
|
||||
|
||||
VERSION := $(shell git describe --tags --dirty --always)
|
||||
|
@ -20,7 +21,8 @@ all: image
|
|||
|
||||
image: yamls
|
||||
$(IMAGE_BUILD_CMD) --build-arg NFD_VERSION=$(VERSION) \
|
||||
-t $(IMAGE_TAG) ./
|
||||
-t $(IMAGE_TAG) \
|
||||
$(IMAGE_BUILD_EXTRA_OPTS) ./
|
||||
|
||||
yamls: $(yaml_instances)
|
||||
|
||||
|
|
|
@ -612,8 +612,9 @@ There are several Makefile variables that control the build process and the
|
|||
name of the resulting container image.
|
||||
|
||||
| Variable | Description | Default value
|
||||
| -------------- | -------------------------------------------- | ----------- |
|
||||
| ---------------------- | -------------------------------------------- | ----------- |
|
||||
| IMAGE_BUILD_CMD | Command to build the image | docker build
|
||||
| IMAGE_BUILD_EXTRA_OPTS | Extra options to pass to build command | *empty*
|
||||
| IMAGE_PUSH_CMD | Command to push the image to remote registry | docker push
|
||||
| IMAGE_REGISTRY | Container image registry to use | quay.io/kubernetes_incubator
|
||||
| IMAGE_NAME | Container image name | node-feature-discovery
|
||||
|
|
Loading…
Add table
Reference in a new issue