Compare commits

..

39 Commits

Author SHA1 Message Date
83220ac4a1 modified: scripts/start-server.sh 2023-11-18 08:27:27 +01:00
0ade378759 scripts/start-server.sh aktualisiert 2023-11-18 08:13:55 +01:00
2f6f111b62 scripts/start-server.sh hinzugefügt 2023-11-18 08:11:37 +01:00
b4ea0031ee scripts/start-server.sh gelöscht 2023-11-18 08:11:21 +01:00
3995d6155a scripts/start-server.sh aktualisiert 2023-11-18 08:04:25 +01:00
9a7b1c9a19 scripts/start-server.sh aktualisiert 2023-11-18 07:58:57 +01:00
5bb5827ec0 Update Dockerfile 2023-06-14 13:28:30 +02:00
a27ccb2f1d „Dockerfile“ ändern 2022-11-07 13:42:58 +01:00
ef214286df „Dockerfile“ ändern 2022-11-07 13:42:52 +01:00
d847a0638f „scripts/start.sh“ ändern 2022-10-25 11:10:34 +02:00
11d0248f6c „Dockerfile“ ändern 2022-05-06 10:58:18 +02:00
8822878458 „scripts/start.sh“ ändern 2022-04-18 14:37:43 +02:00
8dd0ce396a „scripts/start.sh“ ändern 2022-04-07 17:14:31 +02:00
b5ca6ec5b7 „README.md“ ändern 2022-02-03 10:10:49 +01:00
87fc906ad0 „README.md“ ändern 2022-02-03 10:10:16 +01:00
05f752c244 „scripts/start-server.sh“ ändern 2022-02-03 10:05:23 +01:00
aec750667a „scripts/start-server.sh“ ändern 2022-02-03 10:04:45 +01:00
8d91b48569 „scripts/start.sh“ ändern 2022-02-03 09:45:41 +01:00
260665bc52 „Dockerfile“ ändern 2022-02-03 09:45:15 +01:00
62a98433f6 „scripts/start.sh“ ändern 2020-04-28 17:00:31 +02:00
a930f1044b „.drone.yml“ löschen 2020-03-08 21:09:47 +01:00
2c01b99653 „.drone.yml“ hinzufügen
Some checks reported errors
continuous-integration/drone/push Build was killed
2020-03-05 20:16:00 +01:00
dda91573d9 „scripts/start-server.sh“ ändern 2020-02-25 14:33:26 +01:00
5506e2ba2f „scripts/start.sh“ hinzufügen 2020-02-25 14:33:14 +01:00
4d3d661a97 „Dockerfile“ ändern 2020-02-25 14:30:21 +01:00
205a23cf67 „Dockerfile“ ändern 2020-01-05 15:26:39 +01:00
f879546b66 „Dockerfile“ ändern 2020-01-05 15:16:18 +01:00
99d1cc88a9 „Dockerfile“ ändern 2019-11-11 11:29:44 +01:00
fa1730707d „scripts/start-server.sh“ ändern 2019-11-11 11:26:53 +01:00
749ea3d8e8 „scripts/start-server.sh“ ändern 2019-05-21 11:56:14 +02:00
dda541e633 Update start-server.sh 2019-04-29 17:31:52 +02:00
d5de34a829 Update start-server.sh 2019-04-24 13:00:06 +02:00
368b899c32 Update start-server.sh 2019-04-24 12:15:21 +02:00
b9ee5681ce Update start-server.sh 2019-04-23 18:30:32 +02:00
cd32c09d1a Update start-server.sh
Added validation option
2019-04-23 18:25:06 +02:00
7830a33613 Update Dockerfile
Added validation ENV
2019-04-23 18:22:29 +02:00
0668e75011 Update Dockerfile 2019-04-22 08:49:24 +02:00
936e68e162 Update Dockerfile 2019-04-22 08:40:28 +02:00
b1eb859f01 Update Dockerfile 2019-04-22 08:30:28 +02:00
3 changed files with 27 additions and 26 deletions

View File

@@ -1,10 +1,11 @@
FROM ich777/debian-baseimage
FROM ich777/debian-baseimage:bullseye_amd64
LABEL org.opencontainers.image.authors="admin@minenet.at"
LABEL org.opencontainers.image.source="https://github.com/ich777/docker-steamcmd-server"
RUN apt-get update && \
apt-get -y install --no-install-recommends lib32gcc-s1 lib32stdc++6 && \
RUN dpkg --add-architecture i386 && \
apt-get update && \
apt-get -y install --no-install-recommends lib32z1 libncurses5:i386 libbz2-1.0:i386 lib32gcc-s1 lib32stdc++6 libtinfo5:i386 libcurl4-gnutls-dev:i386 && \
rm -rf /var/lib/apt/lists/*
ENV DATA_DIR="/serverdata"
@@ -14,12 +15,10 @@ ENV GAME_ID="template"
ENV GAME_NAME="template"
ENV GAME_PARAMS="template"
ENV GAME_PORT=27015
ENV VALIDATE=""
ENV UMASK=000
ENV UID=99
ENV GID=100
ENV USERNAME=""
ENV PASSWRD=""
ENV VALIDATE=""
ENV USER="steam"
ENV DATA_PERM=770

View File

@@ -1,5 +1,5 @@
# SteamCMD in Docker optimized for Unraid
This Docker will download and install SteamCMD. It will also install Garry's Mod and run it.
This Docker will download and install SteamCMD. It will also install TeamFortress2 and run it.
**Update Notice:** Simply restart the container if a newer version of the game is available.
@@ -8,33 +8,29 @@ This Docker will download and install SteamCMD. It will also install Garry's Mod
| --- | --- | --- |
| STEAMCMD_DIR | Folder for SteamCMD | /serverdata/steamcmd |
| SERVER_DIR | Folder for gamefile | /serverdata/serverfiles |
| GAME_ID | The GAME_ID that the container downloads at startup. If you want to install a static or beta version of the game change the value to: '4020 -beta YOURBRANCH' (without quotes, replace YOURBRANCH with the branch or version you want to install). | 4020 |
| GAME_NAME | SRCDS gamename | garrysmod |
| GAME_PARAMS | Values to start the server | -secure +maxplayers 12 +map gm_flatgrass |
| GAME_ID | The GAME_ID that the container downloads at startup. If you want to install a static or beta version of the game change the value to: '232250 -beta YOURBRANCH' (without quotes, replace YOURBRANCH with the branch or version you want to install). | 232250 |
| GAME_NAME | SRCDS gamename | tf |
| GAME_PARAMS | Values to start the server | +sv_pure 1 +randommap +maxplayers 24 |
| UID | User Identifier | 99 |
| GID | Group Identifier | 100 |
| GAME_PORT | Port the server will be running on | 27015 |
| VALIDATE | Validates the game data | true |
| USERNAME | Leave blank for anonymous login | blank |
| PASSWRD | Leave blank for anonymous login | blank |
## Run example
```
docker run --name GarrysMod -d \
docker run --name TeamFortress2 -d \
-p 27015:27015 -p 27015:27015/udp \
--env 'GAME_ID=4020' \
--env 'GAME_NAME=garrysmod' \
--env 'GAME_ID=232250' \
--env 'GAME_NAME=tf' \
--env 'GAME_PORT=27015' \
--env 'GAME_PARAMS=-secure +maxplayers 12 +map gm_flatgrass' \
--env 'GAME_PARAMS=-secure +maxplayers 32 +map de_dust2' \
--env 'UID=99' \
--env 'GID=100' \
--volume /path/to/steamcmd:/serverdata/steamcmd \
--volume /path/to/garrysmod:/serverdata/serverfiles \
ich777/steamcmd:garrysmod
--volume /path/to/teamfortress2:/serverdata/serverfiles \
ich777/steamcmd:tf2
```
This Docker was mainly edited for better use with Unraid, if you don't use Unraid you should definitely try it!
This Docker is forked from mattieserver, thank you for this wonderfull Docker.
### Support Thread: https://forums.unraid.net/topic/79530-support-ich777-gameserver-dockers/
This Docker is forked from mattieserver, thank you for this wonderfull Docker.

View File

@@ -20,7 +20,7 @@ fi
echo "---Update Server---"
if [ "${USERNAME}" == "" ]; then
if [ "${VALIDATE}" == "true" ]; then
echo "---Validating installation---"
echo "---Validating installation---"
${STEAMCMD_DIR}/steamcmd.sh \
+force_install_dir ${SERVER_DIR} \
+login anonymous \
@@ -35,7 +35,7 @@ if [ "${USERNAME}" == "" ]; then
fi
else
if [ "${VALIDATE}" == "true" ]; then
echo "---Validating installation---"
echo "---Validating installation---"
${STEAMCMD_DIR}/steamcmd.sh \
+force_install_dir ${SERVER_DIR} \
+login ${USERNAME} ${PASSWRD} \
@@ -51,8 +51,14 @@ else
fi
echo "---Prepare Server---"
if [ ! -d ${DATA_DIR}/.steam/sdk32 ]; then
mkdir -p ${DATA_DIR}/.steam/sdk32
cp -R ${SERVER_DIR}/bin/* ${DATA_DIR}/.steam/sdk32/
echo "---Server ready---"
else
echo "---Server ready---"
fi
chmod -R ${DATA_PERM} ${DATA_DIR}
echo "---Server ready---"
echo "---Start Server---"
${SERVER_DIR}/srcds_run -game ${GAME_NAME} ${GAME_PARAMS} -console +port ${GAME_PORT}
${SERVER_DIR}/srcds_run -game ${GAME_NAME} ${GAME_PARAMS} -console +port ${GAME_PORT}