Skip to content

Commit a57229c

Browse files
author
Bren Briggs
committed
Add all the remaining versions
1 parent af2defd commit a57229c

20 files changed

+500
-20
lines changed

1.10/Dockerfile

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Bukkit for Docker
2+
# Copyright (C) 2015 Bren Briggs
3+
4+
# This program is free software; you can redistribute it and/or modify
5+
# it under the terms of the GNU General Public License as published by
6+
# the Free Software Foundation; either version 2 of the License, or
7+
# (at your option) any later version.
8+
9+
# This program is distributed in the hope that it will be useful,
10+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
# GNU General Public License for more details.
13+
14+
# You should have received a copy of the GNU General Public License along
15+
# with this program; if not, write to the Free Software Foundation, Inc.,
16+
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17+
18+
FROM openjdk:8-alpine as builder
19+
WORKDIR /minecraft
20+
RUN apk update
21+
RUN apk --no-cache add wget git bash
22+
RUN wget -O /minecraft/BuildTools.jar https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar
23+
RUN java -jar BuildTools.jar --rev 1.10 2>&1 /dev/null
24+
25+
FROM openjdk:8-alpine
26+
WORKDIR /root
27+
RUN apk update
28+
RUN apk --no-cache add bash
29+
COPY --from=builder /minecraft/craftbukkit-*.jar /root
30+
COPY --from=builder /minecraft/spigot-*.jar /root
31+
EXPOSE 25565
32+
WORKDIR /data
33+
ADD start-bukkit.sh /root/start-bukkit.sh
34+
ADD start-spigot.sh /root/start-spigot.sh
35+
CMD ["/bin/bash", "/root/start-bukkit.sh"]

1.10/start-bukkit.sh

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/bash
2+
#Solution borrowed from https://github.com/itzg/dockerfiles/blob/master/minecraft-server/start-minecraft.sh
3+
if [ ! -f /data/eula.txt ]; then
4+
if [ "$EULA" != "" ]; then
5+
echo "# Generated via Docker on $(date)" > eula.txt
6+
echo "eula=$EULA" > /data/eula.txt
7+
else
8+
echo ""
9+
echo "Please accept the Minecraft EULA at"
10+
echo " https://account.mojang.com/documents/minecraft_eula"
11+
echo "by adding the following immediately after 'docker run':"
12+
echo " -e EULA=TRUE"
13+
echo "or editing eula.txt to 'eula=true' in your server's data directory."
14+
echo ""
15+
exit 1
16+
fi
17+
fi
18+
cd /data
19+
if [[ "$TRAVIS" = true ]]; then
20+
echo "stop" | java -jar /root/craftbukkit-1.10.jar
21+
else
22+
java -jar /root/craftbukkit-1.10.jar
23+
fi

1.10/start-spigot.sh

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/bash
2+
#Solution borrowed from https://github.com/itzg/dockerfiles/blob/master/minecraft-server/start-minecraft.sh
3+
if [ ! -f /data/eula.txt ]; then
4+
if [ "$EULA" != "" ]; then
5+
echo "# Generated via Docker on $(date)" > eula.txt
6+
echo "eula=$EULA" > /data/eula.txt
7+
else
8+
echo ""
9+
echo "Please accept the Minecraft EULA at"
10+
echo " https://account.mojang.com/documents/minecraft_eula"
11+
echo "by adding the following immediately after 'docker run':"
12+
echo " -e EULA=TRUE"
13+
echo "or editing eula.txt to 'eula=true' in your server's data directory."
14+
echo ""
15+
exit 1
16+
fi
17+
fi
18+
cd /data
19+
if [[ "$TRAVIS" = true ]]; then
20+
echo "stop" | java -jar /root/spigot-1.10.jar
21+
else
22+
java -jar /root/spigot-1.10.jar
23+
fi

1.11/Dockerfile

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Bukkit for Docker
2+
# Copyright (C) 2015 Bren Briggs
3+
4+
# This program is free software; you can redistribute it and/or modify
5+
# it under the terms of the GNU General Public License as published by
6+
# the Free Software Foundation; either version 2 of the License, or
7+
# (at your option) any later version.
8+
9+
# This program is distributed in the hope that it will be useful,
10+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
# GNU General Public License for more details.
13+
14+
# You should have received a copy of the GNU General Public License along
15+
# with this program; if not, write to the Free Software Foundation, Inc.,
16+
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17+
18+
FROM openjdk:8-alpine as builder
19+
WORKDIR /minecraft
20+
RUN apk update
21+
RUN apk --no-cache add wget git bash
22+
RUN wget -O /minecraft/BuildTools.jar https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar
23+
RUN java -jar BuildTools.jar --rev 1.11 2>&1 /dev/null
24+
25+
FROM openjdk:8-alpine
26+
WORKDIR /root
27+
RUN apk update
28+
RUN apk --no-cache add bash
29+
COPY --from=builder /minecraft/craftbukkit-*.jar /root
30+
COPY --from=builder /minecraft/spigot-*.jar /root
31+
EXPOSE 25565
32+
WORKDIR /data
33+
ADD start-bukkit.sh /root/start-bukkit.sh
34+
ADD start-spigot.sh /root/start-spigot.sh
35+
CMD ["/bin/bash", "/root/start-bukkit.sh"]

1.11/start-bukkit.sh

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/bash
2+
#Solution borrowed from https://github.com/itzg/dockerfiles/blob/master/minecraft-server/start-minecraft.sh
3+
if [ ! -f /data/eula.txt ]; then
4+
if [ "$EULA" != "" ]; then
5+
echo "# Generated via Docker on $(date)" > eula.txt
6+
echo "eula=$EULA" > /data/eula.txt
7+
else
8+
echo ""
9+
echo "Please accept the Minecraft EULA at"
10+
echo " https://account.mojang.com/documents/minecraft_eula"
11+
echo "by adding the following immediately after 'docker run':"
12+
echo " -e EULA=TRUE"
13+
echo "or editing eula.txt to 'eula=true' in your server's data directory."
14+
echo ""
15+
exit 1
16+
fi
17+
fi
18+
cd /data
19+
if [[ "$TRAVIS" = true ]]; then
20+
echo "stop" | java -jar /root/craftbukkit-1.11.jar
21+
else
22+
java -jar /root/craftbukkit-1.11.jar
23+
fi

1.11/start-spigot.sh

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/bash
2+
#Solution borrowed from https://github.com/itzg/dockerfiles/blob/master/minecraft-server/start-minecraft.sh
3+
if [ ! -f /data/eula.txt ]; then
4+
if [ "$EULA" != "" ]; then
5+
echo "# Generated via Docker on $(date)" > eula.txt
6+
echo "eula=$EULA" > /data/eula.txt
7+
else
8+
echo ""
9+
echo "Please accept the Minecraft EULA at"
10+
echo " https://account.mojang.com/documents/minecraft_eula"
11+
echo "by adding the following immediately after 'docker run':"
12+
echo " -e EULA=TRUE"
13+
echo "or editing eula.txt to 'eula=true' in your server's data directory."
14+
echo ""
15+
exit 1
16+
fi
17+
fi
18+
cd /data
19+
if [[ "$TRAVIS" = true ]]; then
20+
echo "stop" | java -jar /root/spigot-1.11.jar
21+
else
22+
java -jar /root/spigot-1.11.jar
23+
fi

1.12.1/Dockerfile

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Bukkit for Docker
2+
# Copyright (C) 2015 Bren Briggs
3+
4+
# This program is free software; you can redistribute it and/or modify
5+
# it under the terms of the GNU General Public License as published by
6+
# the Free Software Foundation; either version 2 of the License, or
7+
# (at your option) any later version.
8+
9+
# This program is distributed in the hope that it will be useful,
10+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
# GNU General Public License for more details.
13+
14+
# You should have received a copy of the GNU General Public License along
15+
# with this program; if not, write to the Free Software Foundation, Inc.,
16+
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17+
18+
FROM openjdk:8-alpine as builder
19+
WORKDIR /minecraft
20+
RUN apk update
21+
RUN apk --no-cache add wget git bash
22+
RUN wget -O /minecraft/BuildTools.jar https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar
23+
RUN java -jar BuildTools.jar --rev 1.11 2>&1 /dev/null
24+
25+
FROM openjdk:8-alpine
26+
WORKDIR /root
27+
RUN apk update
28+
RUN apk --no-cache add bash
29+
COPY --from=builder /minecraft/craftbukkit-*.jar /root
30+
COPY --from=builder /minecraft/spigot-*.jar /root
31+
EXPOSE 25565
32+
WORKDIR /data
33+
ADD start-bukkit.sh /root/start-bukkit.sh
34+
ADD start-spigot.sh /root/start-spigot.sh
35+
CMD ["/bin/bash", "/root/start-bukkit.sh"]

1.12.1/start-bukkit.sh

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/bash
2+
#Solution borrowed from https://github.com/itzg/dockerfiles/blob/master/minecraft-server/start-minecraft.sh
3+
if [ ! -f /data/eula.txt ]; then
4+
if [ "$EULA" != "" ]; then
5+
echo "# Generated via Docker on $(date)" > eula.txt
6+
echo "eula=$EULA" > /data/eula.txt
7+
else
8+
echo ""
9+
echo "Please accept the Minecraft EULA at"
10+
echo " https://account.mojang.com/documents/minecraft_eula"
11+
echo "by adding the following immediately after 'docker run':"
12+
echo " -e EULA=TRUE"
13+
echo "or editing eula.txt to 'eula=true' in your server's data directory."
14+
echo ""
15+
exit 1
16+
fi
17+
fi
18+
cd /data
19+
if [[ "$TRAVIS" = true ]]; then
20+
echo "stop" | java -jar /root/craftbukkit-1.12.1.jar
21+
else
22+
java -jar /root/craftbukkit-1.12.1.jar
23+
fi

1.12.1/start-spigot.sh

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/bash
2+
#Solution borrowed from https://github.com/itzg/dockerfiles/blob/master/minecraft-server/start-minecraft.sh
3+
if [ ! -f /data/eula.txt ]; then
4+
if [ "$EULA" != "" ]; then
5+
echo "# Generated via Docker on $(date)" > eula.txt
6+
echo "eula=$EULA" > /data/eula.txt
7+
else
8+
echo ""
9+
echo "Please accept the Minecraft EULA at"
10+
echo " https://account.mojang.com/documents/minecraft_eula"
11+
echo "by adding the following immediately after 'docker run':"
12+
echo " -e EULA=TRUE"
13+
echo "or editing eula.txt to 'eula=true' in your server's data directory."
14+
echo ""
15+
exit 1
16+
fi
17+
fi
18+
cd /data
19+
if [[ "$TRAVIS" = true ]]; then
20+
echo "stop" | java -jar /root/spigot-1.12.1.jar
21+
else
22+
java -jar /root/spigot-1.12.1.jar
23+
fi

1.12/Dockerfile

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Bukkit for Docker
2+
# Copyright (C) 2015 Bren Briggs
3+
4+
# This program is free software; you can redistribute it and/or modify
5+
# it under the terms of the GNU General Public License as published by
6+
# the Free Software Foundation; either version 2 of the License, or
7+
# (at your option) any later version.
8+
9+
# This program is distributed in the hope that it will be useful,
10+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
# GNU General Public License for more details.
13+
14+
# You should have received a copy of the GNU General Public License along
15+
# with this program; if not, write to the Free Software Foundation, Inc.,
16+
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17+
18+
FROM openjdk:8-alpine as builder
19+
WORKDIR /minecraft
20+
RUN apk update
21+
RUN apk --no-cache add wget git bash
22+
RUN wget -O /minecraft/BuildTools.jar https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar
23+
RUN java -jar BuildTools.jar --rev 1.12 2>&1 /dev/null
24+
25+
FROM openjdk:8-alpine
26+
WORKDIR /root
27+
RUN apk update
28+
RUN apk --no-cache add bash
29+
COPY --from=builder /minecraft/craftbukkit-*.jar /root
30+
COPY --from=builder /minecraft/spigot-*.jar /root
31+
EXPOSE 25565
32+
WORKDIR /data
33+
ADD start-bukkit.sh /root/start-bukkit.sh
34+
ADD start-spigot.sh /root/start-spigot.sh
35+
CMD ["/bin/bash", "/root/start-bukkit.sh"]

1.12/start-bukkit.sh

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/bash
2+
#Solution borrowed from https://github.com/itzg/dockerfiles/blob/master/minecraft-server/start-minecraft.sh
3+
if [ ! -f /data/eula.txt ]; then
4+
if [ "$EULA" != "" ]; then
5+
echo "# Generated via Docker on $(date)" > eula.txt
6+
echo "eula=$EULA" > /data/eula.txt
7+
else
8+
echo ""
9+
echo "Please accept the Minecraft EULA at"
10+
echo " https://account.mojang.com/documents/minecraft_eula"
11+
echo "by adding the following immediately after 'docker run':"
12+
echo " -e EULA=TRUE"
13+
echo "or editing eula.txt to 'eula=true' in your server's data directory."
14+
echo ""
15+
exit 1
16+
fi
17+
fi
18+
cd /data
19+
if [[ "$TRAVIS" = true ]]; then
20+
echo "stop" | java -jar /root/craftbukkit-1.12.jar
21+
else
22+
java -jar /root/craftbukkit-1.12.jar
23+
fi

1.12/start-spigot.sh

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/bash
2+
#Solution borrowed from https://github.com/itzg/dockerfiles/blob/master/minecraft-server/start-minecraft.sh
3+
if [ ! -f /data/eula.txt ]; then
4+
if [ "$EULA" != "" ]; then
5+
echo "# Generated via Docker on $(date)" > eula.txt
6+
echo "eula=$EULA" > /data/eula.txt
7+
else
8+
echo ""
9+
echo "Please accept the Minecraft EULA at"
10+
echo " https://account.mojang.com/documents/minecraft_eula"
11+
echo "by adding the following immediately after 'docker run':"
12+
echo " -e EULA=TRUE"
13+
echo "or editing eula.txt to 'eula=true' in your server's data directory."
14+
echo ""
15+
exit 1
16+
fi
17+
fi
18+
cd /data
19+
if [[ "$TRAVIS" = true ]]; then
20+
echo "stop" | java -jar /root/spigot-1.12.jar
21+
else
22+
java -jar /root/spigot-1.12.jar
23+
fi

1.9.2/Dockerfile

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Bukkit for Docker
2+
# Copyright (C) 2015 Bren Briggs
3+
4+
# This program is free software; you can redistribute it and/or modify
5+
# it under the terms of the GNU General Public License as published by
6+
# the Free Software Foundation; either version 2 of the License, or
7+
# (at your option) any later version.
8+
9+
# This program is distributed in the hope that it will be useful,
10+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
# GNU General Public License for more details.
13+
14+
# You should have received a copy of the GNU General Public License along
15+
# with this program; if not, write to the Free Software Foundation, Inc.,
16+
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17+
18+
FROM openjdk:8-alpine as builder
19+
WORKDIR /minecraft
20+
RUN apk update
21+
RUN apk --no-cache add wget git bash
22+
RUN wget -O /minecraft/BuildTools.jar https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar
23+
RUN java -jar BuildTools.jar --rev 1.9.2 2>&1 /dev/null
24+
25+
FROM openjdk:8-alpine
26+
WORKDIR /root
27+
RUN apk update
28+
RUN apk --no-cache add bash
29+
COPY --from=builder /minecraft/craftbukkit-*.jar /root
30+
COPY --from=builder /minecraft/spigot-*.jar /root
31+
EXPOSE 25565
32+
WORKDIR /data
33+
ADD start-bukkit.sh /root/start-bukkit.sh
34+
ADD start-spigot.sh /root/start-spigot.sh
35+
CMD ["/bin/bash", "/root/start-bukkit.sh"]

1.9.2/start-bukkit.sh

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/bash
2+
#Solution borrowed from https://github.com/itzg/dockerfiles/blob/master/minecraft-server/start-minecraft.sh
3+
if [ ! -f /data/eula.txt ]; then
4+
if [ "$EULA" != "" ]; then
5+
echo "# Generated via Docker on $(date)" > eula.txt
6+
echo "eula=$EULA" > /data/eula.txt
7+
else
8+
echo ""
9+
echo "Please accept the Minecraft EULA at"
10+
echo " https://account.mojang.com/documents/minecraft_eula"
11+
echo "by adding the following immediately after 'docker run':"
12+
echo " -e EULA=TRUE"
13+
echo "or editing eula.txt to 'eula=true' in your server's data directory."
14+
echo ""
15+
exit 1
16+
fi
17+
fi
18+
cd /data
19+
if [[ "$TRAVIS" = true ]]; then
20+
echo "stop" | java -jar /root/craftbukkit-1.9.2.jar
21+
else
22+
java -jar /root/craftbukkit-1.9.2.jar
23+
fi

0 commit comments

Comments
 (0)