Skip to content
This repository has been archived by the owner on Jun 20, 2021. It is now read-only.

Commit

Permalink
Manage version with one variable
Browse files Browse the repository at this point in the history
  • Loading branch information
tclavier committed Feb 9, 2018
1 parent 70bf4f9 commit 7baeb0b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from debian:sid
env DEBIAN_FRONTEND noninteractive
env MINECRAFT_VERSION=1.12.2
run sed -e 's/deb.debian.org/debian.mirrors.ovh.net/g' -i /etc/apt/sources.list
run apt-get update && \
apt-get dist-upgrade -y && \
Expand All @@ -10,7 +11,7 @@ run apt-get update && \
# Spigot (Minecraft server)
add https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar /opt/minecraft/BuildTools.jar
workdir /opt/minecraft/
run java -jar BuildTools.jar --rev 1.12.2 .
run java -jar BuildTools.jar --rev $MINECRAFT_VERSION .

add http://scriptcraftjs.org/download/latest/scriptcraft-3.2.1/scriptcraft.jar /opt/minecraft/plugins/scriptcraft.jar

Expand Down
2 changes: 1 addition & 1 deletion start
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ cd /minecraft
[ -n "${ONLINE_MODE:-}" ] && sed -i -e "s/^online-mode=.*/online-mode=$ONLINE_MODE/g" /minecraft/server.properties

/etc/init.d/ssh start
echo "jsp classroom on" | /usr/bin/java -Xmx8192M -jar spigot-1.11.2.jar
echo "jsp classroom on" | /usr/bin/java -Xmx8192M -jar spigot-${MINECRAFT_VERSION}.jar

0 comments on commit 7baeb0b

Please sign in to comment.