File tree Expand file tree Collapse file tree 4 files changed +11
-12
lines changed Expand file tree Collapse file tree 4 files changed +11
-12
lines changed Original file line number Diff line number Diff line change 54
54
# copy setup, default parameters and init files
55
55
COPY service /container/service
56
56
COPY defaults /defaults
57
+ COPY external_packages /opt
57
58
58
59
# set permissions and run install-service script
59
60
RUN \
Original file line number Diff line number Diff line change @@ -15,11 +15,11 @@ function installJAVA {
15
15
# Download and install latest jre 8 (Java)
16
16
echo " **** Install JAVA JRE 8 ****"
17
17
cd /opt
18
- wget --no-cookies --no-check-certificate --header " Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub /java/jdk/8u201-b09/42970487e3af4f5aa5bca3f542482c60 /jre-8u201 -linux-x64.tar.gz
19
- tar -zxvf jre-8u201 -linux-x64.tar.gz
20
- update-alternatives --install /usr/bin/java java /opt/jre1.8.0_201 /bin/java 1
18
+ # wget --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn/java/jdk/8u211-b12/478a62b7d4e34b78b671c754eaaf38ab /jre-8u211 -linux-x64.tar.gz
19
+ tar -zxvf jre-8u211 -linux-x64.tar.gz
20
+ update-alternatives --install /usr/bin/java java /opt/jre1.8.0_211 /bin/java 1
21
21
echo " **** cleanup ****"
22
- rm jre-8u201 -linux-x64.tar.gz
22
+ rm jre-8u211 -linux-x64.tar.gz
23
23
}
24
24
25
25
@@ -102,6 +102,7 @@ case "$TYPE" in
102
102
/var/lib/apt/lists/* \
103
103
/tmp/* \
104
104
/var/tmp/*
105
+ rm /opt/jre-8u211-linux-x64.tar.gz
105
106
exec /sbin/setuser docker /container/service/minecraft/deploy/deploy_POCKETMINE.sh
106
107
;;
107
108
Original file line number Diff line number Diff line change 4
4
# # CONSTANTS ##
5
5
# ##############
6
6
export SERVER=" minecraft_server.$VANILLA_VERSION .jar"
7
- case " $VANILLA_VERSION " in
8
- 1.13)
9
- MINECRAFT_DOWNLOAD=" https://launcher.mojang.com/mc/game/1.13/server/d0caafb8438ebd206f99930cfaecfa6c9a13dca0/server.jar"
10
- ;;
11
- * )
12
- MINECRAFT_DOWNLOAD=" https://s3.amazonaws.com/Minecraft.Download/versions/$VANILLA_VERSION /$SERVER "
13
7
14
- ;;
15
- esac
8
+ # ########################################
9
+ # # GET DOWNLOAD URL ##
10
+ # ########################################
11
+ VERSIONMANIFESTURL=` curl -fsSL $VERSIONS_JSON | jq --arg VANILLA_VERSION " $VANILLA_VERSION " --raw-output ' [.versions[]|select(.id == $VANILLA_VERSION)][0].url' `
12
+ MINECRAFT_DOWNLOAD=` curl -fsSL $VERSIONMANIFESTURL | jq --raw-output ' .downloads.server.url' `
16
13
17
14
# ########################################
18
15
# # DOWNLOAD MINECRAFT ##
You can’t perform that action at this time.
0 commit comments