Compare commits

..

21 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
5 changed files with 20 additions and 43 deletions

1
.github/FUNDING.yml vendored
View File

@@ -1 +0,0 @@
github: ich777

View File

@@ -1,10 +1,10 @@
FROM ich777/debian-baseimage:bullseye_amd64
FROM ich777/debian-baseimage
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 lib32z1 lsof libicu67 && \
apt-get -y install --no-install-recommends lib32gcc-s1 curl && \
rm -rf /var/lib/apt/lists/*
ENV DATA_DIR="/serverdata"
@@ -34,4 +34,4 @@ ADD /scripts/ /opt/scripts/
RUN chmod -R 770 /opt/scripts/
#Server Start
ENTRYPOINT ["/opt/scripts/start.sh"]
ENTRYPOINT ["/opt/scripts/start.sh"]

View File

@@ -1,48 +1,36 @@
# SteamCMD in Docker optimized for Unraid
This Docker will download and install SteamCMD. It will also install Counter-Strike 2 and run it.
This Docker will download and install SteamCMD. It will also install KillingFloor 2 and run it.
**ATTENTION:** You have to provide a valid Steam account with the game in it is Library and SteamGuard completely disabled so that the download is working!
_It is recommended that you create dedicated Steam account for your dedicated servers with the games in it and SteamGuard completely disabled!_
**DON'T DISABLE STEAM GUARD ON YOUR PRIMARY ACCOUNT!!!**
**Update Notice:** Simply restart the container if a newer version of the game is available.
**ATTENTION:** First Startup can take very long since it downloads the gameserver files!
**PUBLIC PLAY:** If you want that your server is public listed you must add '+sv_setsteamaccount YOURTOKEN' to the GAME_PARAMS (without the quotes and replace YOURTOKEN with your token).
Create your token here: https://steamcommunity.com/dev/managegameservers (every gameserver needs it's own token!!!)
You can also run multiple servers with only one SteamCMD directory!
## Example Env
## 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: '730 -beta YOURBRANCH' (without quotes, replace YOURBRANCH with the branch or version you want to install). | 730 |
| USERNAME | Leave blank for anonymous login | \<STEAMUSER> |
| PASSWRD | Leave blank for anonymous login | \<STEAMPASSWORD> |
| GAME_PARAMS | Values to start the server | -dedicated -dev +map de_inferno +game_type 0 +game_mode 1 -usercon |
| 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 | blank |
| USERNAME | Leave blank for anonymous login | blank |
| PASSWRD | Leave blank for anonymous login | blank |
## Run example
```
docker run --name CS2 -d \
-p 27015:27015 -p 27015:27015/udp \
--env 'GAME_ID=730' \
--env 'USERNAME=<STEAMUSER>' \
--env 'PASSWRD=<STEAMPASSWORD>' \
--env 'GAME_PARAMS=-dedicated -dev +map de_inferno +game_type 0 +game_mode 1 -usercon' \
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/cs2:/serverdata/serverfiles \
ich777/steamcmd:cs2
--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!
This Docker is forked from mattieserver, thank you for this wonderfull Docker.
#### Support Thread: https://forums.unraid.net/topic/79530-support-ich777-gameserver-dockers/
### Support Thread: https://forums.unraid.net/topic/79530-support-ich777-gameserver-dockers/

View File

@@ -51,18 +51,8 @@ else
fi
echo "---Prepare Server---"
if [ ! -f ${DATA_DIR}/.steam/sdk64/steamclient.so ]; then
if [ ! -d ${DATA_DIR}/.steam ]; then
mkdir ${DATA_DIR}/.steam
fi
if [ ! -d ${DATA_DIR}/.steam/sdk64 ]; then
mkdir ${DATA_DIR}/.steam/sdk64
fi
cp -R ${STEAMCMD_DIR}/linux64/* ${DATA_DIR}/.steam/sdk64/
fi
chmod -R ${DATA_PERM} ${DATA_DIR}
echo "---Server ready---"
echo "---Start Server---"
cd ${SERVER_DIR}
${SERVER_DIR}/game/bin/linuxsteamrt64/cs2 ${GAME_PARAMS}
cd ${SERVER_DIR}/Binaries/Win64
${SERVER_DIR}/Binaries/Win64/KFGameSteamServer.bin.x86_64 ${GAME_PARAMS}

View File

@@ -38,4 +38,4 @@ while true
do
wait $killpid
exit 0;
done
done