-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile
28 lines (22 loc) · 899 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
25
26
27
28
PROJECT_NAME=test-container
PROJECT_NAME_BASE=base
DOCKERFILE_DIR ?= ./images
DOCKERFILE_BASE_DIR ?= ./images/base
REGISTRY ?= quay.io
REGISTRY_ORGANIZATION ?= strimzi-test-container
IMAGE_TAG ?= main
DOCKER_VERSION_ARG ?= latest
ARCHS ?= amd64
DOCKER_CMD ?= docker
all: docker_prepare_base_images prepare docker_build docker_tag_push clean
docker_prepare_base_images:
./images/base/build_base_images.sh $(DOCKER_VERSION_ARG) $(PROJECT_NAME_BASE) "$(ARCHS)" $(DOCKERFILE_BASE_DIR) $(DOCKER_CMD)
docker_build:
./images/build_push_images.sh $(DOCKER_VERSION_ARG) $(PROJECT_NAME) $(DOCKERFILE_DIR) "$(ARCHS)" $(DOCKER_CMD)
docker_tag_push:
./images/tag_push_images.sh $(PROJECT_NAME) $(REGISTRY) $(REGISTRY_ORGANIZATION) $(QUAY_USER) $(QUAY_PASS) "$(ARCHS)" $(DOCKER_CMD)
prepare: clean
./images/download_kafka.sh
clean:
rm -rf images/kafka_binaries || true
rm -rf images/kafka_tars || true