Skip to content

Commit df854b3

Browse files
committed
Update to osixia/light-baseimage 1.3.3
Change for AdoptopenJDK jdk-16.0.1+9 (removal of the temp solution for java) Default maximum allocated Java memory changed to 2 GB
1 parent 4c76926 commit df854b3

File tree

4 files changed

+12
-9
lines changed

4 files changed

+12
-9
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM osixia/light-baseimage:1.1.1
1+
FROM osixia/light-baseimage:1.3.3-amd64
22

33
#########################################
44
## SET LABELS ##
@@ -20,7 +20,7 @@ ENV DEBIAN_FRONTEND=noninteractive \
2020
DUID=1001 DGID=1001 \
2121
JVM_XX_OPTS="-XX:+UseG1GC" \
2222
JVM_MIN_MEM="1024M" \
23-
JVM_MAX_MEM="1024M" \
23+
JVM_MAX_MEM="2048M" \
2424
TYPE="VANILLA" \
2525
VERSION="LATEST" \
2626
FORGEVERSION="RECOMMENDED" \

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
# [Docker Container for JAVA & PE Minecraft][hub]
99

10-
This is a Docker image based on osixia/light-baseimage for running a VANILLA, FORGE, FTB, SPIGOT or POCKETMINE Minecraft server on Java SE Runtime Environment 8u201 or PHP 7.2 (it is inspired by the awesome work of : [itzg/minecraft-server][itzg]).
10+
This is a Docker image based on osixia/light-baseimage for running a VANILLA, FORGE, FTB, SPIGOT or POCKETMINE Minecraft server on Java SE Runtime Environment 8u211 or PHP 7.2 (it is inspired by the awesome work of : [itzg/minecraft-server][itzg]).
1111

1212
Minecraft is a sandbox video game created and designed by Swedish game designer Markus "Notch" Persson, and later fully developed and published by Mojang. The creative and building aspects of Minecraft allow players to build with a variety of different cubes in a 3D procedurally generated world. Other activities in the game include exploration, resource gathering, crafting, and combat. [Wikipedia][Minecraft_wikipedia]
1313

@@ -86,7 +86,7 @@ You will then need **root** rights to access the `/var/lib/docker/volumes/6f5839
8686
* `-e JVM_OPTS` - Java options
8787
* `-e JVM_XX_OPTS` - experimental Java options (**default:** -XX:+UseG1GC)
8888
* `-e JVM_MIN_MEM` - initial allocated Java memory (**default:** 1GB)
89-
* `-e JVM_MAX_MEM` - maximum allocated Java memory (**default:** 1GB)~~~~
89+
* `-e JVM_MAX_MEM` - maximum allocated Java memory (**default:** 2GB)~~~~
9090

9191
### Minecraft Server Properties
9292

@@ -435,4 +435,7 @@ services:
435435

436436
## Versions
437437
+ **V0.1** Initial Release
438-
+ **V0.2** Quick fix to load 13.1 VANILLA version and add POCKETMINE Support
438+
+ **V0.2** Quick fix to load 13.1 VANILLA version and add POCKETMINE Support
439+
+ **V0.3** Update to jre-8u201
440+
+ **V0.4** Update to jre-8u211, temporary solution for required login to download java, use of version_manifest.json to retreive download jar url
441+
+ **V0.5** Update to osixia/light-baseimage 1.3.3, change for AdoptopenJDK jdk-16.0.1+9 (removal of the temp solution for java), changed the default maximum allocated Java memory to 2 GB
-83.8 MB
Binary file not shown.

service/minecraft/deploy/deploy.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ function installJAVA {
1515
# Download and install latest jre 8 (Java)
1616
echo "**** Install JAVA JRE 8 ****"
1717
cd /opt
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
18+
wget --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" https://github.com/AdoptOpenJDK/openjdk16-binaries/releases/download/jdk-16.0.1%2B9/OpenJDK16U-jre_x64_linux_hotspot_16.0.1_9.tar.gz
19+
tar -zxvf OpenJDK16U-jre_x64_linux_hotspot_16.0.1_9.tar.gz
20+
update-alternatives --install /usr/bin/java java /opt/jdk-16.0.1+9-jre/bin/java 1
2121
echo "**** cleanup ****"
22-
rm jre-8u211-linux-x64.tar.gz
22+
rm OpenJDK16U-jre_x64_linux_hotspot_16.0.1_9.tar.gz
2323
}
2424

2525

0 commit comments

Comments
 (0)