-
Notifications
You must be signed in to change notification settings - Fork 0
/
entrypoint.sh
17 lines (15 loc) · 930 Bytes
/
entrypoint.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
if [ -z "$STARTUP" ]; then
echo "No STARTUP environment variable specified. Running default command."
command="java -XX:+UseG1GC -XX:MaxGCPauseMillis=50 -XX:CompileThreshold=100 -XX:+UnlockExperimentalVMOptions -XX:+UseCompressedOops -Xmx512m -Xms256m -jar runner.jar"
elif [ "$STARTUP" = "Wrapper" ]; then
echo "Starting Wrapper application..."
command="java -XX:+UseG1GC -XX:MaxGCPauseMillis=50 -XX:CompileThreshold=100 -XX:+UnlockExperimentalVMOptions -XX:+UseCompressedOops -Xmx512m -Xms256m -jar runner.jar --start-application=WRAPPER"
elif [ "$STARTUP" = "Manager" ]; then
echo "Starting Manager application..."
command="java -XX:+UseG1GC -XX:MaxGCPauseMillis=50 -XX:CompileThreshold=100 -XX:+UnlockExperimentalVMOptions -XX:+UseCompressedOops -Xmx512m -Xms256m -jar runner.jar --start-application=MANAGER"
else
echo "Error: Unexpected value for STARTUP environment variable."
exit 1
fi
$command