add Makefile release target for graal native image

This commit is contained in:
Antoine 2020-09-10 22:31:39 +02:00
parent 6b65fa8e20
commit a38a324ad2
Signed by: antoine
GPG Key ID: 098FB66FC0475E70
1 changed files with 7 additions and 1 deletions

View File

@ -1,5 +1,7 @@
.PHONY: build run debug docker-build docker-run docker-graal-introspect docker-graal-build docker-graal-run
NATIVE_VERSION=1.0.0
build:
./mvnw compile
@ -21,8 +23,12 @@ docker-graal-introspect:
docker build -f ./Dockerfile-agent -t docker.registry:5000/wikiproject-native-introspect .
docker run -p 8080:$(RUN_PORT) -e RUN_PORT=$(RUN_PORT) --rm -v $$(pwd):/build docker.registry:5000/wikiproject-native-introspect
docker-graal-build: NATIVE_VERSION=latest
docker-graal-build:
docker build -t docker.registry:5000/wikiproject-native .
docker build -t docker.registry:5000/wikiproject-native:$(NATIVE_VERSION) .
docker-graal-release:
docker tag docker.registry:5000/wikiproject-native:latest docker.registry:5000/wikiproject-native:$(NATIVE_VERSION)
docker-graal-run: RUN_PORT=8080
docker-graal-run: