-
Notifications
You must be signed in to change notification settings - Fork 191
/
Copy pathMakefile
34 lines (28 loc) · 1.04 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
all: images
.PHONY: all
# Include the library makefile
include $(addprefix ./vendor/github.com/openshift/build-machinery-go/make/, \
golang.mk \
targets/openshift/images.mk \
)
IMAGE_REGISTRY :=registry.ci.openshift.org
# Check which builder to use - default is imagebuilder
ifeq ($(BUILDER), podman)
# Use podman to build the must gather image
# Please ensure you have podman installed on your machine for this
IMAGE_BUILD_BUILDER := podman build
# Clear all build default flags
IMAGE_BUILD_DEFAULT_FLAGS :=
# Set authfile if the user passes another location for the authentication file
ifneq ($(strip $(AUTH_FILE)),)
IMAGE_BUILD_DEFAULT_FLAGS := --authfile=$(AUTH_FILE)
endif
endif
# This will call a macro called "build-image" which will generate image specific targets based on the parameters:
# $0 - macro name
# $1 - target name
# $2 - image ref
# $3 - Dockerfile path
# $4 - context directory for image build
$(call build-image,ocp-must-gather,$(IMAGE_REGISTRY)/ocp/4.17:ocp-must-gather, ./Dockerfile.ocp,.)
$(call verify-golang-versions,Dockerfile.ocp)