-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathbuild.sh
executable file
·34 lines (25 loc) · 1014 Bytes
/
build.sh
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
#!/bin/bash
if [ -z "$GRAALVM_HOME" ] ; then
echo "Please set GRAALVM_HOME to point to your graalvm installation"
exit
fi
PROJECT_DIR="`dirname \"$0\"`"
cd $PROJECT_DIR
./mvnw clean package
rm vertx-graal*
$GRAALVM_HOME/bin/native-image \
--verbose \
--allow-incomplete-classpath \
--no-server \
-Dio.netty.noUnsafe=true \
-H:Name=hello-world \
-H:ReflectionConfigurationFiles=./reflectconfigs/netty.json \
--delay-class-initialization-to-runtime=io.netty.handler.codec.http.HttpObjectEncoder \
--delay-class-initialization-to-runtime=io.netty.handler.codec.http2.Http2CodecUtil \
--delay-class-initialization-to-runtime=io.netty.handler.codec.http2.DefaultHttp2FrameWriter \
--delay-class-initialization-to-runtime=io.netty.handler.codec.http.websocketx.WebSocket00FrameEncoder \
-H:+ReportUnsupportedElementsAtRuntime \
-Dfile.encoding=UTF-8 \
-jar target/vertx-graalvm-native-image-test-0.0.1-SNAPSHOT.jar
rm docker/app
cp vertx-graalvm-native-image-test-0.0.1-SNAPSHOT docker/app