Compare commits
6 Commits
74fa6f7b34
...
c6ca9ef95a
Author | SHA1 | Date | |
---|---|---|---|
c6ca9ef95a | |||
6bac2b5b3e | |||
2e0059bb90 | |||
62809862c5 | |||
7a749c051e | |||
608339c8f7 |
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,2 +1,3 @@
|
||||
/app
|
||||
GT_New_Horizons_2.4.0_Server_Java_17-20.zip
|
||||
/data
|
||||
GT_New_Horizons_2.6.0_Server_Java_17-21.zip
|
@ -1,6 +1,8 @@
|
||||
FROM openjdk:20
|
||||
FROM openjdk:21
|
||||
COPY app /app
|
||||
ADD https://github.com/GTNewHorizons/Hodgepodge/releases/download/2.2.8/hodgepodge-2.2.8.jar /app/mods/hodgepodge-2.2.31.jar
|
||||
COPY hodgepodge-95a2f2a.jar /app/mods/hodgepodge-2.4.43.jar
|
||||
#ADD https://github.com/GTNewHorizons/FTB-Utilities/releases/download/1.1.1-GTNH/FTBUtilities-1.1.1-GTNH.jar /app/mods/FTBUtilities-1.1.1-GTNH.jar
|
||||
#ADD https://github.com/GTNewHorizons/FTB-Library/releases/download/1.0.19-GTNH/FTBLib-1.0.19-GTNH.jar /app/mods/FTBLib-1.0.19-GTNH.jar
|
||||
COPY prepare_environment.sh startserver.sh /app/
|
||||
RUN mkdir -p /data
|
||||
WORKDIR /app
|
||||
|
@ -2,8 +2,9 @@ services:
|
||||
minecraft:
|
||||
build: .
|
||||
volumes:
|
||||
- data:/data
|
||||
- ./data:/data
|
||||
ports:
|
||||
- "25565:25565"
|
||||
volumes:
|
||||
data:
|
||||
#volumes:
|
||||
# data:
|
||||
|
||||
|
@ -1,11 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ ! -f GT_New_Horizons_2.4.0_Server_Java_17-20.zip ]; then
|
||||
wget https://downloads.gtnewhorizons.com/ServerPacks/GT_New_Horizons_2.4.0_Server_Java_17-20.zip
|
||||
if [ ! -f GT_New_Horizons_2.6.0_Server_Java_17-21.zip ]; then
|
||||
wget http://downloads.gtnewhorizons.com/ServerPacks/GT_New_Horizons_2.6.0_Server_Java_17-21.zip
|
||||
fi
|
||||
if [ ! -d app ]; then
|
||||
mkdir app
|
||||
cd app || exit
|
||||
unzip ../GT_New_Horizons_2.4.0_Server_Java_17-20.zip
|
||||
unzip ../GT_New_Horizons_2.6.0_Server_Java_17-21.zip
|
||||
cd ..
|
||||
fi
|
||||
|
BIN
hodgepodge-95a2f2a.jar
Normal file
BIN
hodgepodge-95a2f2a.jar
Normal file
Binary file not shown.
@ -3,7 +3,7 @@
|
||||
echo "eula=true" > eula.txt
|
||||
|
||||
if [ ! -f /data/.initialized ]; then
|
||||
mkdir -p /data/logs /data/World /data/crash-reports
|
||||
mkdir -p /data/logs /data/World /data/crash-reports /data/local /data/visualprospecting
|
||||
for i in "server.properties" "usercache.json" "whitelist.json" "ops.json" "config"
|
||||
do
|
||||
cp -r $i /data/
|
||||
@ -21,6 +21,9 @@ if [ ! -f /app/.initialized ]; then
|
||||
ln -s /data/logs .
|
||||
ln -s /data/World .
|
||||
ln -s /data/crash-reports .
|
||||
ln -s /data/local .
|
||||
ln -s /data/visualprospecting .
|
||||
ln -s /data/backups .
|
||||
|
||||
touch /app/.initialized
|
||||
fi
|
||||
|
@ -1,2 +1,5 @@
|
||||
#!/bin/sh
|
||||
/app/prepare_environment.sh && java -Xms6G -Xmx6G -Dfml.readTimeout=180 @java9args.txt nogui
|
||||
|
||||
if /app/prepare_environment.sh; then
|
||||
exec java -Xms6G -Xmx6G -Dfml.readTimeout=180 -Dfml.queryResult=confirm @java9args.txt -jar lwjgl3ify-forgePatches.jar nogui
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user