-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathcreate-image.sh
More file actions
executable file
·26 lines (24 loc) · 1015 Bytes
/
create-image.sh
File metadata and controls
executable file
·26 lines (24 loc) · 1015 Bytes
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
#!/bin/sh
uberjar="$1"
exec native-image --verbose \
--no-server \
-Djava.library.path=$GRAAL_HOME/jre/lib/amd64/ \
-H:+ReportExceptionStackTraces \
-H:ReflectionConfigurationFiles=graal.json \
-H:IncludeResources='.*\.(properties|edn)' \
-H:IncludeResources='com/ibm/icu/impl/data/icudt58b/.*' \
-H:IncludeResources='com/ibm/icu/impl/duration/impl/data/icudt58b/.*' \
-H:IncludeResources='com/ibm/icu/.*\.properties' \
-H:IncludeResources='com/github/fge/.*\.properties' \
-H:IncludeResources='PGMIG_VERSION' \
--no-fallback \
--allow-incomplete-classpath \
--report-unsupported-elements-at-runtime \
--enable-url-protocols=http,https \
--initialize-at-build-time \
--initialize-at-run-time=org.postgresql.sspi.NTDSAPI \
--initialize-at-run-time=com.sun.jna.platform.win32.Secur32 \
--initialize-at-run-time=com.sun.jna.platform.win32.Kernel32 \
--initialize-at-run-time=org.postgresql.sspi.SSPIClient \
-jar "$uberjar" \
pgmig