-
Notifications
You must be signed in to change notification settings - Fork 20
/
Makefile
31 lines (21 loc) · 1.21 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
IMAGE_NAME ?= fakefish
ORG ?= fakefish
REGISTRY ?= quay.io
IMAGE_URL ?= $(REGISTRY)/$(ORG)/$(IMAGE_NAME)
AUTHOR ?= Mario Vazquez <[email protected]>
TAG ?= latest
.PHONY: build-dell build-kubevirt build-supermicro build-hpe-gen9 build-custom pre-reqs
default: pre-reqs build-custom
build-dell:
podman build . -f dell_scripts/Containerfile -t $(IMAGE_URL):$(TAG) --label org.opencontainers.image.authors"=$(AUTHOR)"
build-kubevirt:
podman build . -f kubevirt_scripts/Containerfile -t $(IMAGE_URL):$(TAG) --label org.opencontainers.image.authors"=$(AUTHOR)"
build-supermicro:
podman build . -f supermicro_scripts/Containerfile -t $(IMAGE_URL):$(TAG) --label org.opencontainers.image.authors"=$(AUTHOR)"
build-hpe-gen9:
podman build . -f hpe-gen9-ilo4-scripts/Containerfile -t $(IMAGE_URL):$(TAG) --label org.opencontainers.image.authors"=$(AUTHOR)"
build-custom: pre-reqs
podman build . -f custom_scripts/Containerfile -t $(IMAGE_URL):$(TAG) --label org.opencontainers.image.authors"=$(AUTHOR)"
.SILENT:
pre-reqs:
if [ $(shell find custom_scripts/ -name "*.sh" | grep -Ec "mountcd.sh|poweroff.sh|poweron.sh|unmountcd.sh|bootfromcdonce.sh") -ne 5 ];then echo 'Missing custom scripts or bad naming';exit 1;fi