Skip to content

Commit 63deed9

Browse files
authored
Quick Fix
With this fix, I removed the installation of Java 8 from the container and set the script container to be java8.
1 parent 501f4f9 commit 63deed9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

database/seeds/MinecraftServiceTableSeeder.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ private function addCoreOptions()
250250
#
251251
# Server Files: /mnt/server
252252
apk update
253-
apk add curl openjdk8
253+
apk add curl
254254
255255
GET_VERSIONS=$(curl -sl http://files.minecraftforge.net/maven/net/minecraftforge/forge/ | grep -A1 Latest | grep -o -e '[1]\.[0-9][0-9] - [0-9][0-9]\.[0-9][0-9]\.[0-9]\.[0-9][0-9][0-9][0-9]')
256256
LATEST_VERSION=$(echo $GET_VERSIONS | sed 's/ //g')
@@ -261,6 +261,7 @@ private function addCoreOptions()
261261
curl -sS http://files.minecraftforge.net/maven/net/minecraftforge/forge/$LATEST_VERSION/forge-$LATEST_VERSION-universal.jar -o server.jar
262262
263263
java -jar installer.jar --installServer
264+
rm -rf installer.jar
264265
EOF;
265266

266267
$this->option['forge'] = ServiceOption::updateOrCreate([
@@ -277,6 +278,7 @@ private function addCoreOptions()
277278
'config_from' => null,
278279
'startup' => 'java -Xms128M -Xmx{{SERVER_MEMORY}}M -jar {{SERVER_JARFILE}}',
279280
'script_install' => $script,
281+
'script_container' => 'frolvlad/alpine-oraclejdk8:cleaned',
280282
]);
281283
}
282284

0 commit comments

Comments
 (0)