Compare commits
25 Commits
garrysmod
...
killingflo
Author | SHA1 | Date | |
---|---|---|---|
6e7ccae6d2 | |||
5146170608
|
|||
46355c5b9a
|
|||
f2f06c36d0
|
|||
39aaa4421d
|
|||
924b9d9546
|
|||
d1e22ac72e | |||
6d6fbf6494 | |||
0489772506 | |||
62beddd804 | |||
f78099dd8d | |||
023e7ecd36 | |||
c32d4e5caa | |||
06c4a3e390 | |||
d3d2e5d768 | |||
990e64b7a4 | |||
c3c2fa0adc | |||
59ac2ee319 | |||
824d142bdb | |||
c1879facb6 | |||
891d6a5d3f | |||
1af4324c74 | |||
83c8ce9cc4 | |||
5fe96b0b12 | |||
d755ec14fa |
@@ -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 curl && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
ENV DATA_DIR="/serverdata"
|
||||
|
24
README.md
24
README.md
@@ -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 KillingFloor 2 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: '232130 -beta YOURBRANCH' (without quotes, replace YOURBRANCH with the branch or version you want to install). | 232130 |
|
||||
| GAME_PARAMS | Values to start the server | kf-bioticslab |
|
||||
| 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 KillingFloor2 -d \
|
||||
-p 7777:7777/udp -p 27015:27015/udp -p 8080:8080 -p 20560:20560/udp \
|
||||
--env 'GAME_ID=232130' \
|
||||
--env 'GAME_PARAMS=kf-bioticslab' \
|
||||
--env 'UID=99' \
|
||||
--env 'GID=100' \
|
||||
--volume /path/to/steamcmd:/serverdata/steamcmd \
|
||||
--volume /path/to/garrysmod:/serverdata/serverfiles \
|
||||
ich777/steamcmd:garrysmod
|
||||
--volume /path/to/killingfloor2:/serverdata/serverfiles \
|
||||
ich777/steamcmd:killingfloor2
|
||||
```
|
||||
|
||||
This Docker was mainly edited for better use with Unraid, if you don't use Unraid you should definitely try it!
|
||||
|
@@ -52,7 +52,7 @@ fi
|
||||
|
||||
echo "---Prepare Server---"
|
||||
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}/Binaries/Win64
|
||||
${SERVER_DIR}/Binaries/Win64/KFGameSteamServer.bin.x86_64 ${GAME_PARAMS}
|
Reference in New Issue
Block a user