forked from openshift/network-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
24 lines (19 loc) · 825 Bytes
/
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
all: images
.PHONY: all
# Include the library makefile
include $(addprefix ./vendor/github.com/openshift/build-machinery-go/make/, \
targets/openshift/images.mk \
)
IMAGE_REGISTRY := registry.ci.openshift.org
# 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-network-tools,$(IMAGE_REGISTRY)/ocp/4.7:ocp-network-tools, ./Dockerfile,.)
# The "rhel" Dockerfile requires fiddling with RHEL subscriptions.
# For testing purposes it's easier to just build a fedora-based image
build-image-network-tools-test:
podman build --no-cache -f ./Dockerfile.fedora -t network-tools-test .
.PHONY: build-image-network-tools-test