update
All checks were successful
Build and Push Minecraft Docker Images on Debian-base update / poll-debian-base-and-detect-changes (push) Successful in 54s
Build and Push Minecraft Docker Images on Debian-base update / Build and Push testing-fabric (push) Successful in 15s
Build and Push Minecraft Docker Images on Debian-base update / Build and Push testing-neoforged (push) Successful in 1m47s
Build and Push Minecraft Docker Images on Debian-base update / Build and Push fabric (push) Successful in 2m23s
Build and Push Minecraft Docker Images on Debian-base update / Build and Push vanilla (push) Successful in 14s
Build and Push Minecraft Docker Images on Debian-base update / Build and Push neoforged (push) Successful in 3m10s
Build and Push Minecraft Docker Images on Debian-base update / Build and Push testing-vanilla (push) Successful in 1m47s
Build and Push Minecraft Docker Images on Debian-base update / generate-changelogs (push) Successful in 9s
Build and Push Minecraft Docker Images on Debian-base update / generate-build-info (push) Successful in 1m0s
All checks were successful
Build and Push Minecraft Docker Images on Debian-base update / poll-debian-base-and-detect-changes (push) Successful in 54s
Build and Push Minecraft Docker Images on Debian-base update / Build and Push testing-fabric (push) Successful in 15s
Build and Push Minecraft Docker Images on Debian-base update / Build and Push testing-neoforged (push) Successful in 1m47s
Build and Push Minecraft Docker Images on Debian-base update / Build and Push fabric (push) Successful in 2m23s
Build and Push Minecraft Docker Images on Debian-base update / Build and Push vanilla (push) Successful in 14s
Build and Push Minecraft Docker Images on Debian-base update / Build and Push neoforged (push) Successful in 3m10s
Build and Push Minecraft Docker Images on Debian-base update / Build and Push testing-vanilla (push) Successful in 1m47s
Build and Push Minecraft Docker Images on Debian-base update / generate-changelogs (push) Successful in 9s
Build and Push Minecraft Docker Images on Debian-base update / generate-build-info (push) Successful in 1m0s
This commit is contained in:
40
testing-neoforged/Dockerfile
Normal file
40
testing-neoforged/Dockerfile
Normal file
@@ -0,0 +1,40 @@
|
||||
FROM gitea.fithwum.tech/fithwum/debian-base:bookworm
|
||||
LABEL maintainer="fithwum"
|
||||
|
||||
ENV ACCEPT_EULA=""
|
||||
ENV GAME_PORT=""
|
||||
ENV NEOFORGE_VERSION=""
|
||||
ENV XMX_SIZE=""
|
||||
ENV XMS_SIZE=""
|
||||
ENV XMN_SIZE=""
|
||||
|
||||
# URL's for files
|
||||
ARG INSTALL_SCRIPT=https://gitea.fithwum.tech/fithwum/minecraft/raw/branch/master/neoforged/Install_Script.sh
|
||||
|
||||
# Install java-17 & Dependencies.
|
||||
RUN apt-get -y update && apt-get -y autoclean && apt-get -y autoremove \
|
||||
&& apt-get install -y wget
|
||||
RUN wget https://packages.microsoft.com/config/debian/11/packages-microsoft-prod.deb -O packages-microsoft-prod.deb \
|
||||
&& dpkg -i packages-microsoft-prod.deb
|
||||
RUN apt-get -y update && apt-get -y --fix-broken install \
|
||||
&& apt-get install -y --no-install-recommends msopenjdk-21 bzip2 lsb-release screen jq \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& update-ca-certificates -f;
|
||||
|
||||
# Folder creation.
|
||||
RUN mkdir -p /MCserver /MCtemp \
|
||||
&& chmod 777 -R /MCserver /MCtemp \
|
||||
&& chown 99:100 -R /MCserver /MCtemp \
|
||||
&& cd /MCserver
|
||||
|
||||
ADD "$INSTALL_SCRIPT" /MCtemp
|
||||
RUN chmod +x /MCtemp/Install_Script.sh
|
||||
|
||||
# Directory where data is stored
|
||||
VOLUME /MCserver
|
||||
|
||||
# 25565 Default.
|
||||
EXPOSE 25565/udp 25565/tcp
|
||||
|
||||
# Run command
|
||||
CMD [ "/bin/bash", "./MCtemp/Install_Script.sh" ]
|
||||
100
testing-neoforged/Install_Script.sh
Normal file
100
testing-neoforged/Install_Script.sh
Normal file
@@ -0,0 +1,100 @@
|
||||
#!/bin/bash
|
||||
# Copyright (c) 2022 fithwum
|
||||
# All rights reserved
|
||||
|
||||
# Main Install Links
|
||||
SERVER_FILE=https://maven.neoforged.net/releases/net/neoforged/neoforge/$NEOFORGE_VERSION-beta/neoforge-$NEOFORGE_VERSION-beta-installer.jar
|
||||
MC_RUN_FILE=https://gitea.fithwum.tech/fithwum/minecraft/raw/branch/master/fabric/run.sh
|
||||
|
||||
rm -fr /MCserver/run_*.sh
|
||||
|
||||
# Main install (Debian).
|
||||
# Check for server files and download if needed.
|
||||
if [ -e /MCserver/neoforge-$NEOFORGE_VERSION-beta-installer.jar ]
|
||||
then
|
||||
echo " "
|
||||
echo "INFO ! neoforge-$NEOFORGE_VERSION-beta-installer.jar found installing now."
|
||||
else
|
||||
echo " "
|
||||
echo "WARNING ! neoforge-$NEOFORGE_VERSION-beta-installer.jar is out of date/missing ... will download now."
|
||||
echo " "
|
||||
echo "INFO ! Cleaning old files."
|
||||
mkdir /MCserver/old-server-versions
|
||||
mv /MCserver/fabric-*-*.jar /MCserver/old-server-versions/
|
||||
wget --no-cache --show-progress --progress=bar:force:noscroll $SERVER_FILE -O /MCserver/neoforge-$NEOFORGE_VERSION-beta-installer.jar
|
||||
fi
|
||||
|
||||
sleep 1
|
||||
|
||||
# Looking for run.sh
|
||||
if [ -e /MCserver/run-$MC_VERSION.sh ]
|
||||
then
|
||||
echo " "
|
||||
echo "INFO ! run-$MC_VERSION.sh found ... will use existing file."
|
||||
else
|
||||
echo " "
|
||||
echo "WARNING ! run-$MC_VERSION.sh is out of date/missing ... will download now."
|
||||
mv /MCserver/run-*.sh /MCserver/old-server-versions/
|
||||
wget --no-cache --show-progress --progress=bar:force:noscroll $MC_RUN_FILE -O /MCserver/run-$MC_VERSION.sh
|
||||
fi
|
||||
|
||||
# Check for EULA
|
||||
if [ ! -f /MCserver/eula.txt ]; then
|
||||
:
|
||||
else
|
||||
if [ "$ACCEPT_EULA" == "false" ]; then
|
||||
if grep -rq 'eula=true' /MCserver/eula.txt; then
|
||||
sed -i '/eula=true/c\eula=false' /MCserver/eula.txt
|
||||
fi
|
||||
echo " "
|
||||
echo "WARNING ! EULA not accepted, you must accept the EULA"
|
||||
echo " to start the Server, putting server in sleep mode"
|
||||
sleep infinity
|
||||
fi
|
||||
fi
|
||||
|
||||
sleep 1
|
||||
|
||||
if [ ! -f /MCserver/eula.txt ]; then
|
||||
echo " "
|
||||
echo "WARNING ! EULA not found please stand by..."
|
||||
sleep 5
|
||||
fi
|
||||
if [ "$ACCEPT_EULA" == "true" ]; then
|
||||
if grep -rq 'eula=false' /MCserver/eula.txt; then
|
||||
sed -i '/eula=false/c\eula=true' /MCserver/eula.txt
|
||||
echo " "
|
||||
echo "INFO ! EULA accepted, server restarting, please wait..."
|
||||
sleep 1
|
||||
exec /MCserver/run-$MC_VERSION.sh --dataPath=/MCserver
|
||||
exit 0
|
||||
fi
|
||||
elif [ "$ACCEPT_EULA" == "false" ]; then
|
||||
echo " "
|
||||
echo "WARNING ! EULA not accepted, you must accept the EULA"
|
||||
echo " to start the Server, putting server in sleep mode"
|
||||
sleep infinity
|
||||
else
|
||||
echo " "
|
||||
echo "WARNING ! Something went wrong, please check EULA variable"
|
||||
fi
|
||||
|
||||
sleep 1
|
||||
echo "INFO ! Setting game port."
|
||||
sed -i '/server-port='*'/c\server-port='$GAME_PORT'' /MCserver/server.properties
|
||||
sleep 1
|
||||
|
||||
# Set permissions.
|
||||
chown 99:100 -R /MCserver
|
||||
chmod 777 -R /MCserver
|
||||
chmod +x /MCserver/run-$MC_VERSION.sh
|
||||
chmod +x /MCserver/neoforge-$NEOFORGE_VERSION-beta-installer.jar
|
||||
|
||||
sleep 1
|
||||
|
||||
# Run Minecraft server.
|
||||
echo " "
|
||||
echo "INFO ! Starting Minecraft Server $MC_VERSION"
|
||||
exec /MCserver/run-$MC_VERSION.sh --dataPath=/MCserver
|
||||
|
||||
exit
|
||||
3
testing-neoforged/eula.txt
Normal file
3
testing-neoforged/eula.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
#By changing the setting below to TRUE you are indicating your agreement to our EULA (https://account.mojang.com/documents/minecraft_eula).
|
||||
#Mon Jul 13 15:34:07 PDT 2020
|
||||
eula=true
|
||||
14
testing-neoforged/ops.json
Normal file
14
testing-neoforged/ops.json
Normal file
@@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"uuid": "e9191443-8706-461c-a4a9-6b12b86f7fc0",
|
||||
"name": "fithwum",
|
||||
"level": 4,
|
||||
"bypassesPlayerLimit": true
|
||||
},
|
||||
{
|
||||
"uuid": "fb505f65-bfb5-45f7-8e16-16ce5ef09eb2",
|
||||
"name": "Lacarthian",
|
||||
"level": 4,
|
||||
"bypassesPlayerLimit": true
|
||||
}
|
||||
]
|
||||
13
testing-neoforged/run.sh
Normal file
13
testing-neoforged/run.sh
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
# Copyright (c) 2022 fithwum
|
||||
# All rights reserved
|
||||
|
||||
cd /MCserver
|
||||
JAR=./server.jar
|
||||
|
||||
while [ true ]; do
|
||||
java -Xmx$XMX_SIZE -Xms$XMS_SIZE -Xmn$XMN_SIZE -Dbungee.epoll=false -jar $JAR nogui
|
||||
if [ $? -eq 0 ]; then
|
||||
break
|
||||
fi
|
||||
done
|
||||
38
testing-neoforged/whitelist.json
Normal file
38
testing-neoforged/whitelist.json
Normal file
@@ -0,0 +1,38 @@
|
||||
[
|
||||
{
|
||||
"uuid": "9b8d4ecf-beae-4277-ba52-7c9d25bb1968",
|
||||
"name": "DHRmike"
|
||||
},
|
||||
{
|
||||
"uuid": "6218840a-7cba-4eb6-aec2-5246f2152c8a",
|
||||
"name": "lordWiseman28"
|
||||
},
|
||||
{
|
||||
"uuid": "e9191443-8706-461c-a4a9-6b12b86f7fc0",
|
||||
"name": "fithwum"
|
||||
},
|
||||
{
|
||||
"uuid": "62bb6a62-c176-4ad7-a49d-e5b2ce0954cf",
|
||||
"name": "OzyWizard"
|
||||
},
|
||||
{
|
||||
"uuid": "fb505f65-bfb5-45f7-8e16-16ce5ef09eb2",
|
||||
"name": "Lacarthian"
|
||||
},
|
||||
{
|
||||
"uuid": "a90f9d4e-33d5-4855-9be5-de025b707f54",
|
||||
"name": "Drakaul"
|
||||
},
|
||||
{
|
||||
"uuid": "f4d00276-62f4-4d30-a085-998c71916ecd",
|
||||
"name": "___ORANGE___"
|
||||
},
|
||||
{
|
||||
"uuid": "27b719c4-daf3-429b-af2d-da3aab113f79",
|
||||
"name": "Rekage_"
|
||||
},
|
||||
{
|
||||
"uuid": "d02f2de9-d414-42e2-b2fd-ec18bc2625ef",
|
||||
"name": "Izzy761"
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user