Compare commits
42 Commits
Author | SHA1 | Date | |
---|---|---|---|
5f37e1840e | |||
af874e363f | |||
4232a69152 | |||
7392a0f372 | |||
8557f193ca
|
|||
f77c21abbb
|
|||
b11f301dd2
|
|||
22bbd0474b
|
|||
78d41ee2d8
|
|||
65a8a163e5
|
|||
cbe9794e7e
|
|||
9a4468f725 | |||
33b6ba5837 | |||
90cca8e0fd | |||
57a365b530 | |||
3b6b12df69 | |||
62740cd221 | |||
d4fe2d60a5 | |||
31c271de7e | |||
f83e4a4f9e | |||
e05dca2e10 | |||
26d0024f1e | |||
b2c5a6bef2 | |||
477d46c985 | |||
336838900e | |||
a080c77f61 | |||
8944322d49 | |||
ba464b9bd1 | |||
bf873f21f3 | |||
3d7e698bc5 | |||
a29620dd5a | |||
8f13b8850d | |||
7d0b2023cc | |||
a9333a0352 | |||
f3b120f82d | |||
b380bc7f24 | |||
c463e82651 | |||
1c1fbc6826 | |||
36be851863 | |||
1cb61cf7ec | |||
adc4ac4616 | |||
c96b1c14b8 |
1
.github/FUNDING.yml
vendored
1
.github/FUNDING.yml
vendored
@@ -1 +0,0 @@
|
||||
github: ich777
|
@@ -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"]
|
40
README.md
40
README.md
@@ -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
9
config/Game.ini
Normal 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")
|
@@ -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}
|
@@ -38,4 +38,4 @@ while true
|
||||
do
|
||||
wait $killpid
|
||||
exit 0;
|
||||
done
|
||||
done
|
Reference in New Issue
Block a user