-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild_graalvm.sh
More file actions
21 lines (18 loc) · 869 Bytes
/
build_graalvm.sh
File metadata and controls
21 lines (18 loc) · 869 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
docker run --rm --name graal -v $(pwd):/working springci/graalvm-ce:master-java11 \
/bin/bash -c "native-image \
--enable-url-protocols=http,https \
--no-fallback \
--allow-incomplete-classpath \
--enable-all-security-services \
-H:ReflectionConfigurationFiles=/working/reflect.json \
-H:ResourceConfigurationFiles=/working/resource-config.json \
-H:+ReportExceptionStackTraces \
-jar /working/build/libs/MarketStoreProductsGetFunction-all.jar \
; \
cp MarketStoreProductsGetFunction-all /working/build/graalvm/server"
mkdir -p build/graalvm
if [ ! -f "build/graalvm/server" ]; then
echo "there was an error building graalvm image"
exit 1
fi