Add a bunch more java images, syntax changes

This commit is contained in:
Matthew Penner
2020-08-04 20:11:03 -06:00
parent 52878fb967
commit 92750f6065
18 changed files with 401 additions and 8 deletions

23
java9/entrypoint.sh Normal file
View File

@@ -0,0 +1,23 @@
#!/bin/ash
#
# Copyright (c) 2020 Matthew Penner
#
# This repository is licensed under the MIT License.
# https://github.com/matthewpi/images/blob/master/LICENSE.md
#
cd /home/container
# Set environment variable that holds the Internal Docker IP
export INTERNAL_IP=`ip route get 1 | awk '{print $NF;exit}'`
# Print Java version
java -version
# Replace start command variables
MODIFIED_START=`eval echo $(echo ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')`
echo "[container@pterodactyl ~]$ ${MODIFIED_START}"
# Run the modified start command
eval ${MODIFIED_START}