2020-08-15 22:47:19 +00:00
|
|
|
.PHONY: build run debug docker-build docker-run docker-graal-introspect docker-graal-build docker-graal-run
|
2020-08-12 22:41:34 +00:00
|
|
|
|
2020-09-10 20:31:39 +00:00
|
|
|
NATIVE_VERSION=1.0.0
|
|
|
|
|
2020-08-12 22:41:34 +00:00
|
|
|
build:
|
|
|
|
./mvnw compile
|
|
|
|
|
|
|
|
run:
|
|
|
|
./mvnw spring-boot:run
|
|
|
|
|
|
|
|
debug:
|
|
|
|
./mvnw spring-boot:run -Dspring-boot.run.jvmArguments="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005"
|
|
|
|
|
|
|
|
docker-build:
|
|
|
|
./mvnw compile com.google.cloud.tools:jib-maven-plugin:2.5.2:build
|
|
|
|
|
|
|
|
docker-run:
|
|
|
|
docker run --rm -d -p 8080:8080 docker.registry:5000/wikiproject:latest
|
2020-08-15 22:47:19 +00:00
|
|
|
|
2020-08-18 12:09:11 +00:00
|
|
|
# this java agent for instrospect java reflexion call is not mandatory, instead spring boot maven plugin do all stuff for us
|
2020-08-15 22:47:19 +00:00
|
|
|
docker-graal-introspect: RUN_PORT=8080
|
|
|
|
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
|
|
|
|
|
2020-09-10 20:31:39 +00:00
|
|
|
docker-graal-build: NATIVE_VERSION=latest
|
2020-08-15 22:47:19 +00:00
|
|
|
docker-graal-build:
|
2020-09-10 20:31:39 +00:00
|
|
|
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)
|
2020-08-15 22:47:19 +00:00
|
|
|
|
2020-09-10 21:02:49 +00:00
|
|
|
docker-graal-push:
|
|
|
|
docker push docker.registry:5000/wikiproject-native:$(NATIVE_VERSION)
|
|
|
|
|
2020-08-15 22:47:19 +00:00
|
|
|
docker-graal-run: RUN_PORT=8080
|
|
|
|
docker-graal-run:
|
2020-09-06 16:01:11 +00:00
|
|
|
echo "$(firstword $(MAKECMDGOALS))"
|
2020-08-18 12:09:11 +00:00
|
|
|
docker run --rm -p 8080:$(RUN_PORT) docker.registry:5000/wikiproject-native --server.port=$(RUN_PORT)
|