-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
41 lines (30 loc) · 1.01 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
.PHONY: build
build:
./gradlew build
compile: build
./compile-only.sh
# -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005 \
runjar:
echo "profiling to generate config.."
java -jar build/libs/server-0.0.1-SNAPSHOT.jar \
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005
-Dorg.apache.cxf.JDKBugHacks.all=true \
-Djava.util.logging.config.file=./src/main/resources/logging.properties
profile:
echo "profiling to generate config.."
java -agentlib:native-image-agent=config-output-dir=src/main/resources/META-INF/native-image \
-jar build/libs/server-0.0.1-SNAPSHOT.jar \
-Dorg.apache.cxf.JDKBugHacks.all=true \
-Dorg.graalvm.nativeimage.imagecode=agent \
-Djava.util.logging.config.file=./src/main/resources/logging.properties
clean:
./gradlew clean
run:
./build/native-image/server -Dorg.apache.cxf.JDKBugHacks.all=true
d-build:
docker build \
--pull \
-f Dockerfile \
-t krisfoster/cxf:01 .
d-run:
docker run --rm -it -P krisfoster/cxf:01 /bin/bash