From 88a0763331c778ad2d513896819ae07ad8a14f3f Mon Sep 17 00:00:00 2001 From: 3v Date: Sun, 6 Nov 2022 14:34:58 +0200 Subject: [PATCH] tshock v5 support --- tshock/Dockerfile | 9 +++++---- tshock/bootstrap.sh | 4 ++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/tshock/Dockerfile b/tshock/Dockerfile index 29b2215..27cb505 100644 --- a/tshock/Dockerfile +++ b/tshock/Dockerfile @@ -6,19 +6,20 @@ RUN apk add --update-cache \ # add the bootstrap file COPY bootstrap.sh /tshock/bootstrap.sh -ENV TSHOCKVERSION=v4.5.18 -ENV TSHOCKZIP=TShock4.5.18_Terraria1.4.3.6.zip +ENV TSHOCKVERSION=v5.0.0 +ENV TSHOCKZIP=TShock-5.0.0-for-Terraria-1.4.4.7-linux-x64-Release.zip # Download and unpack TShock ADD https://github.com/Pryaxis/TShock/releases/download/$TSHOCKVERSION/$TSHOCKZIP / RUN unzip $TSHOCKZIP -d /tshock && \ + tar -xvf /tshock/*.tar -C /tshock && \ rm $TSHOCKZIP && \ - chmod +x /tshock/TerrariaServer.exe && \ + chmod +x /tshock/TShock.Server && \ # add executable perm to bootstrap chmod +x /tshock/bootstrap.sh # do not use -slim due to mysql/tshock requirements -FROM mono:6.12.0.122 +FROM mcr.microsoft.com/dotnet/runtime:6.0 LABEL maintainer="Ryan Sheehan " diff --git a/tshock/bootstrap.sh b/tshock/bootstrap.sh index 314b5b9..98bb355 100755 --- a/tshock/bootstrap.sh +++ b/tshock/bootstrap.sh @@ -24,12 +24,12 @@ if [ -z "$WORLD_FILENAME" ]; then else echo "Running server with command flags: $@" fi - mono --server --gc=sgen -O=all TerrariaServer.exe -configpath "$CONFIGPATH" -logpath "$LOGPATH" "$@" + ./TShock.Server -configpath "$CONFIGPATH" -logpath "$LOGPATH" "$@" else echo "Environment WORLD_FILENAME specified" if [ -f "$WORLD_PATH" ]; then echo "Loading to world $WORLD_FILENAME..." - mono --server --gc=sgen -O=all TerrariaServer.exe -configpath "$CONFIGPATH" -logpath "$LOGPATH" -world "$WORLD_PATH" "$@" + ./TShock.Server -configpath "$CONFIGPATH" -logpath "$LOGPATH" -world "$WORLD_PATH" "$@" else echo "Unable to locate $WORLD_PATH.\nPlease make sure your world file is volumed into docker: -v :/root/.local/share/Terraria/Worlds" exit 1