This commit is contained in:
2023-11-09 08:17:13 -08:00
parent ba09f0be95
commit 785022a671
7 changed files with 26 additions and 14 deletions

View File

@@ -2,7 +2,7 @@ FROM alpine:latest
LABEL maintainer "fithwum" LABEL maintainer "fithwum"
# URL's for files # URL's for files
ARG INSTALL_SCRIPT=https://raw.githubusercontent.com/fithwum/teamspeak-server/master/alpine/files/Install_Script.sh ARG INSTALL_SCRIPT=https://gitlab.fithwum.tech/fithwum/teamspeak-server/-/raw/main/alpine/files/Install_Script.sh
# Install dependencies and folder creation # Install dependencies and folder creation
RUN apk update && apk add --no-cache ca-certificates libstdc++ su-exec bash-completion tar \ RUN apk update && apk add --no-cache ca-certificates libstdc++ su-exec bash-completion tar \

View File

@@ -3,6 +3,7 @@
# All rights reserved # All rights reserved
# Variables. # Variables.
TS_FILES=https://gitlab.fithwum.tech/fithwum/teamspeak-server/-/raw/main/files
echo " " echo " "
echo "Checking for new server version from Teamspeak." echo "Checking for new server version from Teamspeak."
wget --no-cache https://www.teamspeak.com/versions/server.json -O /ts3temp/server.json wget --no-cache https://www.teamspeak.com/versions/server.json -O /ts3temp/server.json
@@ -44,7 +45,7 @@ if [ -e /ts3server/ts3server_minimal_runscript.sh ]
else else
echo " " echo " "
echo "WARNING ! ts3server_minimal_runscript.sh not found ... will download now." echo "WARNING ! ts3server_minimal_runscript.sh not found ... will download now."
wget --no-cache https://raw.githubusercontent.com/fithwum/teamspeak-server/master/files/ts3server_minimal_runscript.sh -O /ts3temp/inifiles/ts3server_minimal_runscript.sh wget --no-cache ${TS_FILES}/ts3server_minimal_runscript.sh -O /ts3temp/inifiles/ts3server_minimal_runscript.sh
cp /ts3temp/inifiles/ts3server_minimal_runscript.sh /ts3server/ cp /ts3temp/inifiles/ts3server_minimal_runscript.sh /ts3server/
rm -fr /ts3temp/ts3server_minimal_runscript.sh rm -fr /ts3temp/ts3server_minimal_runscript.sh
fi fi
@@ -54,7 +55,7 @@ if [ -e /ts3server/ts3db_mariadb.ini ]
else else
echo " " echo " "
echo "WARNING ! ts3db_mariadb.ini not found ... will download now." echo "WARNING ! ts3db_mariadb.ini not found ... will download now."
wget --no-cache https://raw.githubusercontent.com/fithwum/teamspeak-server/master/files/ts3db_mariadb.ini -O /ts3temp/inifiles/ts3db_mariadb.ini wget --no-cache ${TS_FILES}/ts3db_mariadb.ini -O /ts3temp/inifiles/ts3db_mariadb.ini
cp /ts3temp/inifiles/ts3db_mariadb.ini /ts3server/ cp /ts3temp/inifiles/ts3db_mariadb.ini /ts3server/
rm -fr /ts3temp/inifiles/ts3db_mariadb.ini rm -fr /ts3temp/inifiles/ts3db_mariadb.ini
fi fi
@@ -64,7 +65,7 @@ if [ -e /ts3server/ts3server.ini ]
else else
echo " " echo " "
echo "WARNING ! ts3server.ini not found ... will download now." echo "WARNING ! ts3server.ini not found ... will download now."
wget --no-cache https://raw.githubusercontent.com/fithwum/teamspeak-server/master/files/ts3server.ini -O /ts3temp/inifiles/ts3server.ini wget --no-cache ${TS_FILES}/ts3server.ini -O /ts3temp/inifiles/ts3server.ini
cp /ts3temp/inifiles/ts3server.ini /ts3server/ cp /ts3temp/inifiles/ts3server.ini /ts3server/
rm -fr /ts3temp/inifiles/ts3server.ini rm -fr /ts3temp/inifiles/ts3server.ini
fi fi
@@ -74,7 +75,7 @@ if [ -e /ts3server/.ts3server_license_accepted ]
else else
echo " " echo " "
echo "WARNING ! .ts3server_license_accepted not found ... will download now." echo "WARNING ! .ts3server_license_accepted not found ... will download now."
wget --no-cache https://raw.githubusercontent.com/fithwum/teamspeak-server/master/files/.ts3server_license_accepted -O /ts3temp/.ts3server_license_accepted wget --no-cache ${TS_FILES}/.ts3server_license_accepted -O /ts3temp/.ts3server_license_accepted
cp /ts3temp/.ts3server_license_accepted /ts3server/ cp /ts3temp/.ts3server_license_accepted /ts3server/
rm -fr /ts3temp/.ts3server_license_accepted rm -fr /ts3temp/.ts3server_license_accepted
fi fi

View File

@@ -2,7 +2,7 @@ FROM fithwum/debian-base:bullseye
LABEL maintainer "fithwum" LABEL maintainer "fithwum"
# URL's for files # URL's for files
ARG INSTALL_SCRIPT=https://raw.githubusercontent.com/fithwum/teamspeak-server/master/basic/files/Install_Script.sh ARG INSTALL_SCRIPT=https://gitlab.fithwum.tech/fithwum/teamspeak-server/-/raw/main/basic/files/Install_Script.sh
# Install dependencies and folder creation # Install dependencies and folder creation
RUN apt-get -y update && apt-get clean \ RUN apt-get -y update && apt-get clean \

View File

@@ -3,6 +3,7 @@
# All rights reserved # All rights reserved
# Variables. # Variables.
TS_FILES=https://gitlab.fithwum.tech/fithwum/teamspeak-server/-/raw/main/files
echo " " echo " "
echo "Checking server version from Teamspeak." echo "Checking server version from Teamspeak."
wget --no-cache https://www.teamspeak.com/versions/server.json -O /ts3temp/server.json wget --no-cache https://www.teamspeak.com/versions/server.json -O /ts3temp/server.json
@@ -44,7 +45,7 @@ if [ -e /ts3server/ts3server_minimal_runscript.sh ]
else else
echo " " echo " "
echo "WARNING ! ts3server_minimal_runscript.sh not found ... will download now." echo "WARNING ! ts3server_minimal_runscript.sh not found ... will download now."
wget --no-cache https://raw.githubusercontent.com/fithwum/teamspeak-server/master/files/ts3server_minimal_runscript.sh -O /ts3temp/inifiles/ts3server_minimal_runscript.sh wget --no-cache ${TS_FILES}/ts3server_minimal_runscript.sh -O /ts3temp/inifiles/ts3server_minimal_runscript.sh
cp /ts3temp/inifiles/ts3server_minimal_runscript.sh /ts3server/ cp /ts3temp/inifiles/ts3server_minimal_runscript.sh /ts3server/
rm -fr /ts3temp/ts3server_minimal_runscript.sh rm -fr /ts3temp/ts3server_minimal_runscript.sh
fi fi
@@ -54,7 +55,7 @@ if [ -e /ts3server/ts3server.ini ]
else else
echo " " echo " "
echo "WARNING ! ts3server.ini not found ... will download now." echo "WARNING ! ts3server.ini not found ... will download now."
wget --no-cache https://raw.githubusercontent.com/fithwum/teamspeak-server/master/basic/files/ts3server.ini -O /ts3temp/inifiles/ts3server.ini wget --no-cache https://gitlab.fithwum.tech/fithwum/teamspeak-server/-/raw/main/basic/files/ts3server.ini -O /ts3temp/inifiles/ts3server.ini
cp /ts3temp/inifiles/ts3server.ini /ts3server/ cp /ts3temp/inifiles/ts3server.ini /ts3server/
rm -fr /ts3temp/inifiles/ts3server.ini rm -fr /ts3temp/inifiles/ts3server.ini
fi fi
@@ -64,7 +65,7 @@ if [ -e /ts3server/.ts3server_license_accepted ]
else else
echo " " echo " "
echo "WARNING ! .ts3server_license_accepted not found ... will download now." echo "WARNING ! .ts3server_license_accepted not found ... will download now."
wget --no-cache https://raw.githubusercontent.com/fithwum/teamspeak-server/master/files/.ts3server_license_accepted -O /ts3temp/.ts3server_license_accepted wget --no-cache ${TS_FILES}/.ts3server_license_accepted -O /ts3temp/.ts3server_license_accepted
cp /ts3temp/.ts3server_license_accepted /ts3server/ cp /ts3temp/.ts3server_license_accepted /ts3server/
rm -fr /ts3temp/.ts3server_license_accepted rm -fr /ts3temp/.ts3server_license_accepted
fi fi

9
build_base.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
# Copyright (c) 2023 fithwum
# All rights reserved
docker build --pull --rm -f "alpine/Dockerfile" -t fithwum/teamspeak-server:alpine "alpine"
sleep 5
docker build --pull --rm -f "debian/Dockerfile" -t fithwum/teamspeak-server:debian "debian"
sleep 5
docker build --pull --rm -f "basic/Dockerfile" -t fithwum/teamspeak-server:basic "basic"

2
debian/Dockerfile vendored
View File

@@ -2,7 +2,7 @@ FROM fithwum/debian-base:bullseye
LABEL maintainer "fithwum" LABEL maintainer "fithwum"
# URL's for files # URL's for files
ARG INSTALL_SCRIPT=https://raw.githubusercontent.com/fithwum/teamspeak-server/master/debian/files/Install_Script.sh ARG INSTALL_SCRIPT=https://gitlab.fithwum.tech/fithwum/teamspeak-server/-/raw/main/debian/files/Install_Script.sh
# Install dependencies and folder creation # Install dependencies and folder creation
RUN apt-get -y update && apt-get clean \ RUN apt-get -y update && apt-get clean \

View File

@@ -3,6 +3,7 @@
# All rights reserved # All rights reserved
# Variables. # Variables.
TS_FILES=https://gitlab.fithwum.tech/fithwum/teamspeak-server/-/raw/main/files
echo " " echo " "
echo "Checking server version from Teamspeak." echo "Checking server version from Teamspeak."
wget --no-cache https://www.teamspeak.com/versions/server.json -O /ts3temp/server.json wget --no-cache https://www.teamspeak.com/versions/server.json -O /ts3temp/server.json
@@ -44,7 +45,7 @@ if [ -e /ts3server/ts3server_minimal_runscript.sh ]
else else
echo " " echo " "
echo "WARNING ! ts3server_minimal_runscript.sh not found ... will download now." echo "WARNING ! ts3server_minimal_runscript.sh not found ... will download now."
wget --no-cache https://raw.githubusercontent.com/fithwum/teamspeak-server/master/files/ts3server_minimal_runscript.sh -O /ts3temp/inifiles/ts3server_minimal_runscript.sh wget --no-cache ${TS_FILES}/ts3server_minimal_runscript.sh -O /ts3temp/inifiles/ts3server_minimal_runscript.sh
cp /ts3temp/inifiles/ts3server_minimal_runscript.sh /ts3server/ cp /ts3temp/inifiles/ts3server_minimal_runscript.sh /ts3server/
rm -fr /ts3temp/ts3server_minimal_runscript.sh rm -fr /ts3temp/ts3server_minimal_runscript.sh
fi fi
@@ -54,7 +55,7 @@ if [ -e /ts3server/ts3db_mariadb.ini ]
else else
echo " " echo " "
echo "WARNING ! ts3db_mariadb.ini not found ... will download now." echo "WARNING ! ts3db_mariadb.ini not found ... will download now."
wget --no-cache https://raw.githubusercontent.com/fithwum/teamspeak-server/master/files/ts3db_mariadb.ini -O /ts3temp/inifiles/ts3db_mariadb.ini wget --no-cache ${TS_FILES}/ts3db_mariadb.ini -O /ts3temp/inifiles/ts3db_mariadb.ini
cp /ts3temp/inifiles/ts3db_mariadb.ini /ts3server/ cp /ts3temp/inifiles/ts3db_mariadb.ini /ts3server/
rm -fr /ts3temp/inifiles/ts3db_mariadb.ini rm -fr /ts3temp/inifiles/ts3db_mariadb.ini
fi fi
@@ -64,7 +65,7 @@ if [ -e /ts3server/ts3server.ini ]
else else
echo " " echo " "
echo "WARNING ! ts3server.ini not found ... will download now." echo "WARNING ! ts3server.ini not found ... will download now."
wget --no-cache https://raw.githubusercontent.com/fithwum/teamspeak-server/master/files/ts3server.ini -O /ts3temp/inifiles/ts3server.ini wget --no-cache ${TS_FILES}/ts3server.ini -O /ts3temp/inifiles/ts3server.ini
cp /ts3temp/inifiles/ts3server.ini /ts3server/ cp /ts3temp/inifiles/ts3server.ini /ts3server/
rm -fr /ts3temp/inifiles/ts3server.ini rm -fr /ts3temp/inifiles/ts3server.ini
fi fi
@@ -74,7 +75,7 @@ if [ -e /ts3server/.ts3server_license_accepted ]
else else
echo " " echo " "
echo "WARNING ! .ts3server_license_accepted not found ... will download now." echo "WARNING ! .ts3server_license_accepted not found ... will download now."
wget --no-cache https://raw.githubusercontent.com/fithwum/teamspeak-server/master/files/.ts3server_license_accepted -O /ts3temp/.ts3server_license_accepted wget --no-cache ${TS_FILES}/.ts3server_license_accepted -O /ts3temp/.ts3server_license_accepted
cp /ts3temp/.ts3server_license_accepted /ts3server/ cp /ts3temp/.ts3server_license_accepted /ts3server/
rm -fr /ts3temp/.ts3server_license_accepted rm -fr /ts3temp/.ts3server_license_accepted
fi fi