Compare commits

..

39 Commits
cs2 ... tf2

Author SHA1 Message Date
83220ac4a1 modified: scripts/start-server.sh 2023-11-18 08:27:27 +01:00
0ade378759 scripts/start-server.sh aktualisiert 2023-11-18 08:13:55 +01:00
2f6f111b62 scripts/start-server.sh hinzugefügt 2023-11-18 08:11:37 +01:00
b4ea0031ee scripts/start-server.sh gelöscht 2023-11-18 08:11:21 +01:00
3995d6155a scripts/start-server.sh aktualisiert 2023-11-18 08:04:25 +01:00
9a7b1c9a19 scripts/start-server.sh aktualisiert 2023-11-18 07:58:57 +01:00
5bb5827ec0 Update Dockerfile 2023-06-14 13:28:30 +02:00
a27ccb2f1d „Dockerfile“ ändern 2022-11-07 13:42:58 +01:00
ef214286df „Dockerfile“ ändern 2022-11-07 13:42:52 +01:00
d847a0638f „scripts/start.sh“ ändern 2022-10-25 11:10:34 +02:00
11d0248f6c „Dockerfile“ ändern 2022-05-06 10:58:18 +02:00
8822878458 „scripts/start.sh“ ändern 2022-04-18 14:37:43 +02:00
8dd0ce396a „scripts/start.sh“ ändern 2022-04-07 17:14:31 +02:00
b5ca6ec5b7 „README.md“ ändern 2022-02-03 10:10:49 +01:00
87fc906ad0 „README.md“ ändern 2022-02-03 10:10:16 +01:00
05f752c244 „scripts/start-server.sh“ ändern 2022-02-03 10:05:23 +01:00
aec750667a „scripts/start-server.sh“ ändern 2022-02-03 10:04:45 +01:00
8d91b48569 „scripts/start.sh“ ändern 2022-02-03 09:45:41 +01:00
260665bc52 „Dockerfile“ ändern 2022-02-03 09:45:15 +01:00
62a98433f6 „scripts/start.sh“ ändern 2020-04-28 17:00:31 +02:00
a930f1044b „.drone.yml“ löschen 2020-03-08 21:09:47 +01:00
2c01b99653 „.drone.yml“ hinzufügen
Some checks reported errors
continuous-integration/drone/push Build was killed
2020-03-05 20:16:00 +01:00
dda91573d9 „scripts/start-server.sh“ ändern 2020-02-25 14:33:26 +01:00
5506e2ba2f „scripts/start.sh“ hinzufügen 2020-02-25 14:33:14 +01:00
4d3d661a97 „Dockerfile“ ändern 2020-02-25 14:30:21 +01:00
205a23cf67 „Dockerfile“ ändern 2020-01-05 15:26:39 +01:00
f879546b66 „Dockerfile“ ändern 2020-01-05 15:16:18 +01:00
99d1cc88a9 „Dockerfile“ ändern 2019-11-11 11:29:44 +01:00
fa1730707d „scripts/start-server.sh“ ändern 2019-11-11 11:26:53 +01:00
749ea3d8e8 „scripts/start-server.sh“ ändern 2019-05-21 11:56:14 +02:00
dda541e633 Update start-server.sh 2019-04-29 17:31:52 +02:00
d5de34a829 Update start-server.sh 2019-04-24 13:00:06 +02:00
368b899c32 Update start-server.sh 2019-04-24 12:15:21 +02:00
b9ee5681ce Update start-server.sh 2019-04-23 18:30:32 +02:00
cd32c09d1a Update start-server.sh
Added validation option
2019-04-23 18:25:06 +02:00
7830a33613 Update Dockerfile
Added validation ENV
2019-04-23 18:22:29 +02:00
0668e75011 Update Dockerfile 2019-04-22 08:49:24 +02:00
936e68e162 Update Dockerfile 2019-04-22 08:40:28 +02:00
b1eb859f01 Update Dockerfile 2019-04-22 08:30:28 +02:00
5 changed files with 30 additions and 48 deletions

1
.github/FUNDING.yml vendored
View File

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

View File

@@ -3,8 +3,9 @@ FROM ich777/debian-baseimage:bullseye_amd64
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 && \
RUN dpkg --add-architecture i386 && \
apt-get update && \
apt-get -y install --no-install-recommends lib32z1 libncurses5:i386 libbz2-1.0:i386 lib32gcc-s1 lib32stdc++6 libtinfo5:i386 libcurl4-gnutls-dev:i386 && \
rm -rf /var/lib/apt/lists/*
ENV DATA_DIR="/serverdata"
@@ -14,12 +15,10 @@ ENV GAME_ID="template"
ENV GAME_NAME="template"
ENV GAME_PARAMS="template"
ENV GAME_PORT=27015
ENV VALIDATE=""
ENV UMASK=000
ENV UID=99
ENV GID=100
ENV USERNAME=""
ENV PASSWRD=""
ENV VALIDATE=""
ENV USER="steam"
ENV DATA_PERM=770
@@ -34,4 +33,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 TeamFortress2 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: '232250 -beta YOURBRANCH' (without quotes, replace YOURBRANCH with the branch or version you want to install). | 232250 |
| GAME_NAME | SRCDS gamename | tf |
| GAME_PARAMS | Values to start the server | +sv_pure 1 +randommap +maxplayers 24 |
| UID | User Identifier | 99 |
| GID | Group Identifier | 100 |
| GAME_PORT | Port the server will be running on | 27015 |
| VALIDATE | Validates the game data | blank |
## Run example
```
docker run --name CS2 -d \
docker run --name TeamFortress2 -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' \
--env 'GAME_ID=232250' \
--env 'GAME_NAME=tf' \
--env 'GAME_PORT=27015' \
--env 'GAME_PARAMS=-secure +maxplayers 32 +map de_dust2' \
--env 'UID=99' \
--env 'GID=100' \
--volume /path/to/steamcmd:/serverdata/steamcmd \
--volume /path/to/cs2:/serverdata/serverfiles \
ich777/steamcmd:cs2
--volume /path/to/teamfortress2:/serverdata/serverfiles \
ich777/steamcmd:tf2
```
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/
This Docker is forked from mattieserver, thank you for this wonderfull Docker.

View File

@@ -20,7 +20,7 @@ fi
echo "---Update Server---"
if [ "${USERNAME}" == "" ]; then
if [ "${VALIDATE}" == "true" ]; then
echo "---Validating installation---"
echo "---Validating installation---"
${STEAMCMD_DIR}/steamcmd.sh \
+force_install_dir ${SERVER_DIR} \
+login anonymous \
@@ -35,7 +35,7 @@ if [ "${USERNAME}" == "" ]; then
fi
else
if [ "${VALIDATE}" == "true" ]; then
echo "---Validating installation---"
echo "---Validating installation---"
${STEAMCMD_DIR}/steamcmd.sh \
+force_install_dir ${SERVER_DIR} \
+login ${USERNAME} ${PASSWRD} \
@@ -51,18 +51,14 @@ 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/
if [ ! -d ${DATA_DIR}/.steam/sdk32 ]; then
mkdir -p ${DATA_DIR}/.steam/sdk32
cp -R ${SERVER_DIR}/bin/* ${DATA_DIR}/.steam/sdk32/
echo "---Server ready---"
else
echo "---Server ready---"
fi
chmod -R ${DATA_PERM} ${DATA_DIR}
echo "---Server ready---"
echo "---Start Server---"
cd ${SERVER_DIR}
${SERVER_DIR}/game/bin/linuxsteamrt64/cs2 ${GAME_PARAMS}
${SERVER_DIR}/srcds_run -game ${GAME_NAME} ${GAME_PARAMS} -console +port ${GAME_PORT}

View File

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