Compare commits
52 Commits
Author | SHA1 | Date | |
---|---|---|---|
4b48ac648d | |||
a48afa78d6
|
|||
03a33881e9
|
|||
c2a5665440
|
|||
1b8eee06c3
|
|||
de9c4b12ae
|
|||
f3bf7f40bc | |||
75d730d56e | |||
439be87094 | |||
37d5971b90 | |||
4505e9a594 | |||
0a72444d76 | |||
c1dd77b6f9 | |||
bec67da329 | |||
76ee4f1fa8 | |||
34e3ac9b4b | |||
58e57ca3ac | |||
c3b06c3f93 | |||
aaf54879f5 | |||
faadd84fc6 | |||
57f1297424 | |||
2c62e2122c | |||
188d659291 | |||
cdb7149180 | |||
6bf6095542 | |||
eb789c136a | |||
c2b723d6ed | |||
dae057f127 | |||
d67f46d5f4 | |||
2a2ff0efa6 | |||
8eb4317b39 | |||
4aa289f92f | |||
66df523708 | |||
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
|
10
Dockerfile
10
Dockerfile
@@ -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 libcanberra-gtk-module libgdiplus && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
ENV DATA_DIR="/serverdata"
|
||||
@@ -13,7 +13,6 @@ ENV SERVER_DIR="${DATA_DIR}/serverfiles"
|
||||
ENV GAME_ID="template"
|
||||
ENV GAME_NAME="template"
|
||||
ENV GAME_PARAMS="template"
|
||||
ENV GAME_PORT=27015
|
||||
ENV VALIDATE=""
|
||||
ENV UMASK=000
|
||||
ENV UID=99
|
||||
@@ -33,5 +32,8 @@ RUN mkdir $DATA_DIR && \
|
||||
ADD /scripts/ /opt/scripts/
|
||||
RUN chmod -R 770 /opt/scripts/
|
||||
|
||||
EXPOSE 3001
|
||||
EXPOSE 3000/udp
|
||||
|
||||
#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 ECO 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!!!**
|
||||
**PASSWORD:** The initial password is 'Docker'.
|
||||
|
||||
**ATTENTION:** First Startup can take very long since it downloads the gameserver files!
|
||||
**Update Notice:** Simply restart the container if a newer version of the game is available.
|
||||
|
||||
**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: '739590 -beta YOURBRANCH' (without quotes, replace YOURBRANCH with the branch or version you want to install). | 739590 |
|
||||
| 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 ECO -d \
|
||||
-p 3001:3001 -p 3000:3000/udp \
|
||||
--env 'GAME_ID=739590' \
|
||||
--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/eco:/serverdata/serverfiles \
|
||||
ich777/steamcmd:eco
|
||||
```
|
||||
|
||||
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/
|
14
config/Network.eco
Normal file
14
config/Network.eco
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"PublicServer": true,
|
||||
"Playtime": "",
|
||||
"Password": "Docker",
|
||||
"Description": "ECO Docker",
|
||||
"DetailedDescription": "",
|
||||
"ServerCategory": "None",
|
||||
"IPAddress": "Any",
|
||||
"GameServerPort": 3000,
|
||||
"WebServerPort": 3001,
|
||||
"Rate": 20,
|
||||
"MaxConnections": -1,
|
||||
"UPnPEnabled": true
|
||||
}
|
@@ -51,18 +51,26 @@ 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/
|
||||
echo "---Checking if everything is in place---"
|
||||
if [ ! -f ${SERVER_DIR}/Configs/Network.eco ]; then
|
||||
echo "---'Network.eco' not found, downloading---"
|
||||
cd ${SERVER_DIR}/Configs
|
||||
if wget -q -nc --show-progress --progress=bar:force:noscroll -O Network.eco https://raw.githubusercontent.com/ich777/docker-steamcmd-server/eco/config/Network.eco ; then
|
||||
echo "---Successfully downloaded 'Network.eco'!---"
|
||||
else
|
||||
echo "---Something went wrong, can't download 'Network.eco', continuing---"
|
||||
fi
|
||||
else
|
||||
echo "---Everything in place---"
|
||||
fi
|
||||
echo "---Checking for old logfiles---"
|
||||
find ${SERVER_DIR} -name "XvfbLog.*" -exec rm -f {} \;
|
||||
find ${SERVER_DIR} -name "x11vncLog.*" -exec rm -f {} \;
|
||||
find /tmp -name ".X99*" -exec rm -f {} \;
|
||||
|
||||
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}/EcoServer ${GAME_PARAMS}
|
@@ -26,8 +26,8 @@ chown -R ${UID}:${GID} ${DATA_DIR}
|
||||
|
||||
echo "---Starting...---"
|
||||
term_handler() {
|
||||
kill -SIGTERM "$killpid"
|
||||
wait "$killpid" -f 2>/dev/null
|
||||
kill -SIGTERM "$(pidof EcoServer)"
|
||||
tail --pid="$(pidof EcoServer)" -f 2>/dev/null
|
||||
exit 143;
|
||||
}
|
||||
|
||||
@@ -38,4 +38,4 @@ while true
|
||||
do
|
||||
wait $killpid
|
||||
exit 0;
|
||||
done
|
||||
done
|
Reference in New Issue
Block a user