Compare commits

..

42 Commits

Author SHA1 Message Date
5f37e1840e Dockerfile aktualisiert 2023-10-11 08:12:40 +02:00
af874e363f Dockerfile aktualisiert 2023-10-11 08:02:44 +02:00
4232a69152 Dockerfile aktualisiert 2023-10-11 07:57:40 +02:00
7392a0f372 „scripts/start.sh“ ändern 2022-10-25 11:08:02 +02:00
8557f193ca „README.md“ ändern 2022-05-29 08:19:59 +02:00
f77c21abbb „scripts/start-server.sh“ ändern 2022-05-25 12:18:03 +02:00
b11f301dd2 „Dockerfile“ ändern 2022-05-06 10:47:09 +02:00
22bbd0474b „scripts/start-server.sh“ ändern 2022-04-18 13:37:38 +02:00
78d41ee2d8 „scripts/start.sh“ ändern 2022-04-18 13:37:16 +02:00
65a8a163e5 „Dockerfile“ ändern 2022-04-18 13:37:03 +02:00
cbe9794e7e „README.md“ ändern 2022-04-18 13:36:53 +02:00
9a4468f725 „scripts/start.sh“ ändern 2021-04-01 19:31:44 +02:00
33b6ba5837 „Dockerfile“ ändern 2021-04-01 19:30:59 +02:00
90cca8e0fd „scripts/start.sh“ ändern 2020-04-28 17:01:59 +02:00
57a365b530 „.drone.yml“ löschen 2020-03-08 21:05:02 +01:00
3b6b12df69 „.drone.yml“ hinzufügen
All checks were successful
continuous-integration/drone/push Build is passing
2020-03-05 20:23:14 +01:00
62740cd221 „scripts/start.sh“ hinzufügen 2020-02-25 14:39:26 +01:00
d4fe2d60a5 „scripts/start-server.sh“ ändern 2020-02-25 14:39:18 +01:00
31c271de7e „Dockerfile“ ändern 2020-02-25 14:28:00 +01:00
f83e4a4f9e „scripts/start-server.sh“ ändern 2020-01-18 10:41:55 +01:00
e05dca2e10 „config/Game.ini“ hinzufügen 2020-01-18 10:33:04 +01:00
26d0024f1e „scripts/start-server.sh“ ändern 2020-01-18 10:31:39 +01:00
b2c5a6bef2 „Dockerfile“ ändern 2020-01-18 10:24:59 +01:00
477d46c985 „Dockerfile“ ändern 2020-01-18 10:17:53 +01:00
336838900e „Dockerfile“ ändern 2019-12-26 08:45:00 +01:00
a080c77f61 „Dockerfile“ ändern 2019-12-26 08:37:40 +01:00
8944322d49 „Dockerfile“ ändern 2019-12-26 08:37:15 +01:00
ba464b9bd1 „Dockerfile“ ändern 2019-12-26 08:01:41 +01:00
bf873f21f3 „scripts/start-server.sh“ ändern 2019-11-11 11:14:38 +01:00
3d7e698bc5 „scripts/start-server.sh“ ändern 2019-11-11 09:07:00 +01:00
a29620dd5a „scripts/start-server.sh“ ändern 2019-11-11 09:02:46 +01:00
8f13b8850d „Dockerfile“ ändern 2019-11-11 09:02:20 +01:00
7d0b2023cc „scripts/start-server.sh“ ändern 2019-06-12 22:36:54 +02:00
a9333a0352 „scripts/start-server.sh“ ändern 2019-05-21 11:57:20 +02:00
f3b120f82d „scripts/start-server.sh“ ändern 2019-05-20 22:58:31 +02:00
b380bc7f24 Update start-server.sh 2019-04-29 17:32:41 +02:00
c463e82651 Update start-server.sh 2019-04-29 13:20:07 +02:00
1c1fbc6826 Update Dockerfile 2019-04-29 12:54:18 +02:00
36be851863 Update start-server.sh 2019-04-29 12:23:48 +02:00
1cb61cf7ec Update Dockerfile 2019-04-29 12:23:07 +02:00
adc4ac4616 Update start-server.sh 2019-04-24 13:01:42 +02:00
c96b1c14b8 Update start-server.sh 2019-04-24 12:15:54 +02:00
6 changed files with 55 additions and 35 deletions

1
.github/FUNDING.yml vendored
View File

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

View File

@@ -1,12 +1,15 @@
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 gdb libc++1 && \
rm -rf /var/lib/apt/lists/*
# Fix for Pavlov not liking linked libc++.so
RUN cp /usr/lib/llvm-14/lib/libc++.so.1.0 /usr/lib/x86_64-linux-gnu/libc++.so
ENV DATA_DIR="/serverdata"
ENV STEAMCMD_DIR="${DATA_DIR}/steamcmd"
ENV SERVER_DIR="${DATA_DIR}/serverfiles"
@@ -34,4 +37,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,38 @@
# 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 Pavlov VR 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!
**ATTENTION:** I would strongly recommend that you mount a path to the /tmp directory inside the container like in the run example because maps will be downloaded to the /tmp directory and will be wiped on a container update.
**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: '622970 -beta YOURBRANCH' (without quotes, replace YOURBRANCH with the branch or version you want to install). | 622970 |
| GAME_PARAMS | Values to start the server | empty |
| 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 PavlovVR -d \
-p 7777:7777 -p 7777:7777/udp -p 8177:8177/udp -p 7977:7977/udp \
--env 'GAME_ID=622970' \
--env 'UID=99' \
--env 'GID=100' \
--volume /path/to/steamcmd:/serverdata/steamcmd \
--volume /path/to/cs2:/serverdata/serverfiles \
ich777/steamcmd:cs2
--volume /path/to/pavlovvr:/serverdata/serverfiles \
--volume /path/to/pavlovvr/temp-maps:/tmp \
ich777/steamcmd:pavlovvr
```
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/

9
config/Game.ini Normal file
View File

@@ -0,0 +1,9 @@
[/Script/Pavlov.DedicatedServer]
bEnabled=true
ServerName="Docker PavlovVR"
MaxPlayers=50
bSecured=true
MapRotation=(MapId="UGC1668673188")
MapRotation=(MapId="datacenter", GameMode="SND")
MapRotation=(MapId="sand", GameMode="DM")
MapRotation=(MapId="bridge", GameMode="TDM")

View File

@@ -52,17 +52,36 @@ 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
mkdir -p ${DATA_DIR}/.steam/sdk64
fi
cp -R ${STEAMCMD_DIR}/linux64/* ${DATA_DIR}/.steam/sdk64/
fi
echo "---Checking if 'Game.ini' exists---"
if [ ! -f ${SERVER_DIR}/Pavlov/Saved/Config/LinuxServer/Game.ini ]; then
echo "---'Game.ini' not found, downloading...---"
if [ ! -d ${SERVER_DIR}/Pavlov/Saved ]; then
mkdir ${SERVER_DIR}/Pavlov/Saved
fi
if [ ! -d ${SERVER_DIR}/Pavlov/Saved/Config ]; then
mkdir ${SERVER_DIR}/Pavlov/Saved/Config
fi
if [ ! -d ${SERVER_DIR}/Pavlov/Saved/Config/LinuxServer ]; then
mkdir ${SERVER_DIR}/Pavlov/Saved/Config/LinuxServer
fi
cd ${SERVER_DIR}/Pavlov/Saved/Config/LinuxServer
if wget -q -nc --show-progress --progress=bar:force:noscroll https://raw.githubusercontent.com/ich777/docker-steamcmd-server/pavlovvr/config/Game.ini ; then
echo "---Successfully downloaded 'Game.ini'---"
else
echo "---Something went wrong, can't download 'Game.ini', putting server in sleep mode---"
sleep infinity
fi
else
echo "---'Game.ini' found---"
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}/PavlovServer.sh ${GAME_PARAMS}

View File

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