mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2024-06-07 19:40:43 +00:00
[mc] Use ENTRYPOINT and pass through extra args
Enables experimenting for #80
This commit is contained in:
parent
dd5a21067b
commit
0defd266a6
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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 $*
|
||||
|
Loading…
Reference in New Issue
Block a user