Compare commits

..

23 Commits

Author SHA1 Message Date
a58e781861 „scripts/start.sh“ ändern 2022-10-25 11:08:20 +02:00
0bdab6d051 „Dockerfile“ ändern 2022-05-06 10:49:09 +02:00
0771318092 „README.md“ ändern 2022-04-18 13:51:57 +02:00
4572e8c356 „scripts/start-server.sh“ ändern 2022-04-18 13:48:11 +02:00
8aaddd12c5 „scripts/start.sh“ ändern 2022-04-18 13:47:50 +02:00
2cd4f18b34 „Dockerfile“ ändern 2022-04-18 13:46:46 +02:00
06b2e6c4d0 „scripts/start-server.sh“ ändern 2020-04-25 13:35:55 +02:00
c462756343 „scripts/start.sh“ ändern 2020-04-11 14:05:59 +02:00
d67f46d5f4 „.drone.yml“ löschen 2020-03-08 20:52:03 +01:00
2a2ff0efa6 „.drone.yml“ hinzufügen
Some checks reported errors
continuous-integration/drone/push Build was killed
2020-03-05 20:31:30 +01:00
8eb4317b39 „scripts/start-server.sh“ ändern 2020-02-25 14:49:46 +01:00
4aa289f92f „scripts/start.sh“ hinzufügen 2020-02-25 14:49:33 +01:00
66df523708 „Dockerfile“ ändern 2020-02-25 14:18:30 +01:00
477d46c985 „Dockerfile“ ändern 2020-01-18 10:17:53 +01:00
336838900e „Dockerfile“ ändern 2019-12-26 08:45:00 +01:00
a080c77f61 „Dockerfile“ ändern 2019-12-26 08:37:40 +01:00
8944322d49 „Dockerfile“ ändern 2019-12-26 08:37:15 +01:00
ba464b9bd1 „Dockerfile“ ändern 2019-12-26 08:01:41 +01:00
bf873f21f3 „scripts/start-server.sh“ ändern 2019-11-11 11:14:38 +01:00
3d7e698bc5 „scripts/start-server.sh“ ändern 2019-11-11 09:07:00 +01:00
a29620dd5a „scripts/start-server.sh“ ändern 2019-11-11 09:02:46 +01:00
8f13b8850d „Dockerfile“ ändern 2019-11-11 09:02:20 +01:00
7d0b2023cc „scripts/start-server.sh“ ändern 2019-06-12 22:36:54 +02:00
3 changed files with 14 additions and 16 deletions

View File

@@ -4,7 +4,7 @@ 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 && \
apt-get -y install --no-install-recommends lib32gcc-s1 && \
rm -rf /var/lib/apt/lists/*
ENV DATA_DIR="/serverdata"

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 PostScriptum and run it.
**Update Notice:** Simply restart the container if a newer version of the game is available.
@@ -8,29 +8,25 @@ 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: '746200 -beta YOURBRANCH' (without quotes, replace YOURBRANCH with the branch or version you want to install). | 746200 |
| GAME_PARAMS | Enter your start up commands for the server (for example the server admin: --admin [YOURsteamID64] e.g: '--admin 123456789123456789' without quotes). | Port=10027 QueryPort=10037 -log |
| UID | User Identifier | 99 |
| GID | Group Identifier | 100 |
| GAME_PORT | Port the server will be running on | 27015 |
| VALIDATE | Validates the game data | true |
| VALIDATE | Validates the game data | blank |
| USERNAME | Leave blank for anonymous login | blank |
| PASSWRD | Leave blank for anonymous login | blank |
## Run example
```
docker run --name GarrysMod -d \
-p 27015:27015 -p 27015:27015/udp \
--env 'GAME_ID=4020' \
--env 'GAME_NAME=garrysmod' \
--env 'GAME_PORT=27015' \
--env 'GAME_PARAMS=-secure +maxplayers 12 +map gm_flatgrass' \
docker run --name PostScriptum -d \
-p 10027:10027/udp -p 10037:10037/udp \
--env 'GAME_ID=746200' \
--env 'GAME_PARAMS=Port=10027 QueryPort=10037 -log' \
--env 'UID=99' \
--env 'GID=100' \
--volume /path/to/steamcmd:/serverdata/steamcmd \
--volume /path/to/garrysmod:/serverdata/serverfiles \
ich777/steamcmd:garrysmod
--volume /path/to/postscriptum:/serverdata/serverfiles \
ich777/steamcmd:postscriptum
```
This Docker was mainly edited for better use with Unraid, if you don't use Unraid you should definitely try it!

View File

@@ -51,8 +51,10 @@ else
fi
echo "---Prepare Server---"
export LD_LIBRARY_PATH="${SERVER_DIR}/linux64/:$LD_LIBRARY_PATH"
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}
cd ${SERVER_DIR}
${SERVER_DIR}/PostScriptum/Binaries/Linux/PostScriptumServer ${GAME_PARAMS}