mirror of
https://github.com/kaboomserver/framework.git
synced 2025-01-08 15:38:48 +00:00
15 lines
675 B
Bash
Executable file
15 lines
675 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# This script is used as a reference to generate a stripped-down OpenJ9 JRE for the server
|
|
|
|
rm -rf java/
|
|
wget https://github.com/AdoptOpenJDK/openjdk14-binaries/releases/download/jdk-14.0.1%2B7_openj9-0.20.0/OpenJDK14U-jdk_x64_linux_openj9_14.0.1_7_openj9-0.20.0.tar.gz
|
|
tar -zxvf OpenJDK*
|
|
rm OpenJDK*
|
|
mv jdk* jdk/
|
|
jdk/bin/jlink --no-header-files --no-man-pages --compress=2 --strip-debug \
|
|
--exclude-files=**java_*.properties,**jrunscript,**keytool,**legal/** \
|
|
--add-modules \
|
|
java.desktop,java.logging,java.management,java.naming,java.net.http,java.scripting,java.sql,jdk.crypto.ec,jdk.unsupported,jdk.zipfs,openj9.sharedclasses \
|
|
--output java
|
|
rm -rf jdk/
|