-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
39 lines (29 loc) · 887 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
29
30
31
32
33
34
35
36
37
38
39
# Image URL to use all building/pushing image targets
REGISTRY ?= quay.io
REPOSITORY ?= $(REGISTRY)/petbattle/pet-battle-tournament
IMG := $(REPOSITORY):latest
# clean compile
compile:
mvn clean package -DskipTests
# Podman Login
podman-login:
@podman login -u $(DOCKER_USER) -p $(DOCKER_PASSWORD) $(REGISTRY)
# Build the oci image no compile
podman-build-nocompile:
podman build --no-cache . -t ${IMG} -f src/main/docker/Dockerfile.jvm
# Build the oci image
podman-build: compile
podman build . -t ${IMG} -f src/main/docker/Dockerfile.jvm
# Push the oci image
podman-push: podman-build
podman push ${IMG}
# Push the oci image
podman-push-nocompile: podman-build-nocompile
podman push ${IMG}
# Just Push the oci image
podman-push-nobuild:
podman push ${IMG}
podman-run:
podman-compose -f docker-compose.yml up -d
podman-stop:
podman-compose -f docker-compose.yml down