Compare commits

..

25 Commits

Author SHA1 Message Date
6e7ccae6d2 „scripts/start.sh“ ändern 2022-10-25 11:06:25 +02:00
5146170608 „Dockerfile“ ändern 2022-05-06 10:36:04 +02:00
46355c5b9a „README.md“ ändern 2022-04-18 12:53:01 +02:00
f2f06c36d0 „scripts/start.sh“ ändern 2022-04-18 12:50:16 +02:00
39aaa4421d „scripts/start-server.sh“ ändern 2022-04-18 12:50:02 +02:00
924b9d9546 „Dockerfile“ ändern 2022-04-18 12:49:42 +02:00
d1e22ac72e „scripts/start.sh“ ändern 2020-07-14 06:13:08 +02:00
6d6fbf6494 „Dockerfile“ ändern 2020-07-14 06:12:13 +02:00
0489772506 „scripts/start.sh“ ändern 2020-04-28 17:02:56 +02:00
62beddd804 „.drone.yml“ löschen 2020-03-08 21:02:08 +01:00
f78099dd8d „.drone.yml“ hinzufügen
Some checks reported errors
continuous-integration/drone/push Build was killed
2020-03-05 20:25:03 +01:00
023e7ecd36 „scripts/start.sh“ hinzufügen 2020-02-25 14:41:59 +01:00
c32d4e5caa „scripts/start-server.sh“ ändern 2020-02-25 14:41:50 +01:00
06c4a3e390 „Dockerfile“ ändern 2020-02-25 14:26:16 +01:00
d3d2e5d768 „Dockerfile“ ändern 2020-01-07 18:15:49 +01:00
990e64b7a4 „Dockerfile“ ändern 2019-11-11 11:32:07 +01:00
c3c2fa0adc „scripts/start-server.sh“ ändern 2019-11-11 11:22:55 +01:00
59ac2ee319 „scripts/start-server.sh“ ändern 2019-05-21 11:55:17 +02:00
824d142bdb Update start-server.sh 2019-05-07 18:20:32 +02:00
c1879facb6 Update start-server.sh 2019-05-07 17:37:11 +02:00
891d6a5d3f Update Dockerfile 2019-05-07 17:36:45 +02:00
1af4324c74 Update start-server.sh 2019-04-29 17:30:58 +02:00
83c8ce9cc4 Update start-server.sh 2019-04-24 12:59:19 +02:00
5fe96b0b12 Update start-server.sh 2019-04-24 12:13:20 +02:00
d755ec14fa Merge pull request #3 from ich777/beta
Updated to support login
2019-04-23 18:10:56 +02:00
3 changed files with 13 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 curl && \
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 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!

View File

@@ -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}