-
Notifications
You must be signed in to change notification settings - Fork 13
/
Makefile
61 lines (46 loc) · 1.42 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Image URL to use all building/pushing image targets
REGISTRY ?= quay.io
REPOSITORY ?= $(REGISTRY)/petbattle/pet-battle-api
IMG := $(REPOSITORY):latest
# Native image compile - FIXME
# Image Scaling (Scalr.java)
# native compile works, but does not run
# broken because Image.io not in graal yet - https://github.com/quarkusio/quarkus/issues/8605
# -P native
# Dockerfile.native
# clean compile
compile:
mvn -s settings.xml clean package -DskipTests
compile-native:
mvn -s settings.xml clean package -DskipTests -P native
# test
test:
mvn -s settings.xml clean test
# 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 Dockerfile.jvm
# Build the oci image
podman-build: compile
podman build . -t ${IMG} -f Dockerfile.jvm
podman-build-native: compile-native
podman build . -t ${IMG} -f Dockerfile.native
# 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
# JReleaser - for jar file loading into openshift
release:
mvn clean package -Dquarkus.package.type=uber-jar -DskipTests
mvn -Prelease jreleaser:full-release