Any arguments given to the script are given through directly as argument to the Java application.
Example:
# Set the application directory directly
export JAVA_APP_DIR=/deployments
# Set -Xmx based on container constraints
export JAVA_MAX_MEM_RATIO=40
# Start the jar in JAVA_APP_DIR with the given arguments
./run-java.sh --user maxmorlock --password secret
Content type
Image
Digest
Size
70.9 MB
Last updated
over 7 years ago
docker pull shengbox/openjdk