Compare commits
28 Commits
garrysmod
...
aaprovingg
Author | SHA1 | Date | |
---|---|---|---|
615d3f8a66 | |||
046df0fb2a
|
|||
34f3a36ece
|
|||
ce4bb3bb00
|
|||
4648c95c43
|
|||
a1b56154be
|
|||
e4d5e48dd0
|
|||
51629bd034
|
|||
b1714b05b3
|
|||
d490df5165 | |||
7893d8393e | |||
02142603fa | |||
c462756343 | |||
d67f46d5f4 | |||
2a2ff0efa6 | |||
8eb4317b39 | |||
4aa289f92f | |||
66df523708 | |||
477d46c985 | |||
336838900e | |||
a080c77f61 | |||
8944322d49 | |||
ba464b9bd1 | |||
bf873f21f3 | |||
3d7e698bc5 | |||
a29620dd5a | |||
8f13b8850d | |||
7d0b2023cc |
@@ -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"
|
||||
|
25
README.md
25
README.md
@@ -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!
|
||||
|
@@ -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}
|
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user