Compare commits

..

28 Commits

Author SHA1 Message Date
615d3f8a66 „scripts/start.sh“ ändern 2022-10-25 10:59:45 +02:00
046df0fb2a „Dockerfile“ ändern 2022-05-06 09:57:35 +02:00
34f3a36ece „scripts/start.sh“ ändern 2022-04-18 09:35:12 +02:00
ce4bb3bb00 „scripts/start.sh“ ändern 2022-04-07 17:12:00 +02:00
4648c95c43 „scripts/start.sh“ ändern 2021-12-14 15:13:02 +01:00
a1b56154be „README.md“ ändern 2021-12-14 13:27:34 +01:00
e4d5e48dd0 „Dockerfile“ ändern 2021-12-14 13:22:38 +01:00
51629bd034 „scripts/start.sh“ ändern 2021-12-14 13:22:16 +01:00
b1714b05b3 „scripts/start-server.sh“ ändern 2021-12-14 13:21:52 +01:00
d490df5165 „scripts/start-server.sh“ ändern 2021-01-28 19:30:14 +01:00
7893d8393e „Dockerfile“ ändern 2021-01-28 19:26:31 +01:00
02142603fa „scripts/start.sh“ ändern 2020-07-20 12:55:06 +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
4 changed files with 18 additions and 17 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 libgl1 && \
rm -rf /var/lib/apt/lists/*
ENV DATA_DIR="/serverdata"

View File

@@ -1,16 +1,16 @@
# 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 America's Army: Proving Grounds and run it.
**Update Notice:** Simply restart the container if a newer version of the game is available.
Update Notice: Simply restart the container if a newer version of the game is available.
## Env params
| Name | Value | Example |
| --- | --- | --- |
| 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: '203300 -beta YOURBRANCH' (without quotes, replace YOURBRANCH with the branch or version you want to install). | 203300 |
| SRV_NAME | The server name | Army Docker |
| GAME_PARAMS | Values to start the server | -port=7778 -SAP=8778 -SQP=27015 -aauregion=1 -log=Server.log |
| UID | User Identifier | 99 |
| GID | Group Identifier | 100 |
| GAME_PORT | Port the server will be running on | 27015 |
@@ -20,17 +20,16 @@ This Docker will download and install SteamCMD. It will also install Garry's Mod
## 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 AmericasArmy-PG -d \
-p 7778:7778/udp -p 8778:8778/udp -p 27015:27015/udp \
--env 'GAME_ID=203300' \
--env 'SRV_NAME=Army Docker' \
--env 'GAME_PARAMS=-port=7778 -SAP=8778 -SQP=27015 -aauregion=1 -log=Server.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/americasarmy-pg:/serverdata/serverfiles \
ich777/steamcmd:aaprovinggrounds
```
This Docker was mainly edited for better use with Unraid, if you don't use Unraid you should definitely try it!

View File

@@ -55,4 +55,5 @@ 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}/Binaries/Linux/AAPG -servername=\"${SRV_NAME}\" ${GAME_PARAMS}

View File

@@ -26,8 +26,9 @@ chown -R ${UID}:${GID} ${DATA_DIR}
echo "---Starting...---"
term_handler() {
kill -SIGTERM "$killpid"
wait "$killpid" -f 2>/dev/null
kill -SIGINT $(pidof AAPG)
tail --pid=$(pidof AAPG) -f 2>/dev/null
sleep 0.5
exit 143;
}