[mc] Use ENTRYPOINT and pass through extra args

Enables experimenting for #80
This commit is contained in:
Geoff Bourne 2016-05-28 20:58:36 -05:00
parent dd5a21067b
commit 0defd266a6
4 changed files with 6 additions and 6 deletions

View File

@ -36,7 +36,7 @@ VOLUME ["/plugins"]
COPY server.properties /tmp/server.properties
WORKDIR /data
CMD [ "/start" ]
ENTRYPOINT [ "/start" ]
# Special marker ENV used by MCCY management tool
ENV MC_IMAGE=YES

View File

@ -6,8 +6,8 @@ if [ $# -lt 1 ]; then
fi
cd /tmp
wget -O mcadmin-versions.jar https://bintray.com/itzgeoff/artifacts/download_file?file_path=me%2Fitzg%2Fmcadmin-versions%2F1.1.0%2Fmcadmin-versions-1.1.0.jar
wget http://central.maven.org/maven2/org/jsoup/jsoup/1.9.1/jsoup-1.9.1.jar
wget -qO mcadmin-versions.jar https://bintray.com/itzgeoff/artifacts/download_file?file_path=me%2Fitzg%2Fmcadmin-versions%2F1.1.0%2Fmcadmin-versions-1.1.0.jar
wget -q http://central.maven.org/maven2/org/jsoup/jsoup/1.9.1/jsoup-1.9.1.jar
java -jar mcadmin-versions.jar $1 > /tmp/mcadmin-versions.db
rm *.jar

View File

@ -398,9 +398,9 @@ fi
# If we have a bootstrap.txt file... feed that in to the server stdin
if [ -f /data/bootstrap.txt ];
then
exec java $JVM_OPTS -jar $SERVER < /data/bootstrap.txt
exec java $JVM_OPTS -jar $SERVER $* < /data/bootstrap.txt
else
exec java $JVM_OPTS -jar $SERVER
exec java $JVM_OPTS -jar $SERVER $*
fi
exec java $JVM_OPTS -jar $SERVER

View File

@ -16,4 +16,4 @@ mkdir -p /home/minecraft
chown minecraft: /home/minecraft
echo "Switching to user 'minecraft'"
exec sudo -E -u minecraft /start-minecraft
exec sudo -E -u minecraft /start-minecraft $*