Compare commits

..

52 Commits

Author SHA1 Message Date
a23ec2db55 „scripts/start.sh“ ändern 2022-10-25 11:02:03 +02:00
771cabb9fa „Dockerfile“ ändern 2022-05-06 10:13:00 +02:00
8831a4cc3c „README.md“ ändern 2022-04-18 10:29:49 +02:00
ba2d645d7f „scripts/start-server.sh“ ändern 2022-04-18 10:23:41 +02:00
0f5315ce52 „scripts/start.sh“ ändern 2022-04-18 10:23:20 +02:00
c3d7fab8d4 „Dockerfile“ ändern 2022-04-18 10:23:03 +02:00
203df5243f „scripts/start-server.sh“ ändern 2021-02-09 10:17:08 +01:00
7d9c8b9cf5 „Dockerfile“ ändern 2021-02-09 09:51:17 +01:00
c60595c261 „scripts/start-server.sh“ ändern 2021-02-09 09:50:44 +01:00
085965ae58 „Dockerfile“ ändern 2021-02-09 08:49:10 +01:00
02142603fa „scripts/start.sh“ ändern 2020-07-20 12:55:06 +02:00
c462756343 „scripts/start.sh“ ändern 2020-04-11 14:05:59 +02:00
d67f46d5f4 „.drone.yml“ löschen 2020-03-08 20:52:03 +01:00
2a2ff0efa6 „.drone.yml“ hinzufügen
Some checks reported errors
continuous-integration/drone/push Build was killed
2020-03-05 20:31:30 +01:00
8eb4317b39 „scripts/start-server.sh“ ändern 2020-02-25 14:49:46 +01:00
4aa289f92f „scripts/start.sh“ hinzufügen 2020-02-25 14:49:33 +01:00
66df523708 „Dockerfile“ ändern 2020-02-25 14:18:30 +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
d5fa207964 Update README.md 2019-04-23 18:03:13 +02:00
26ca9f1ad0 Update README.md 2019-04-23 18:02:45 +02:00
d50caefedd Update README.md 2019-04-23 18:02:15 +02:00
3a2fd6a598 Update start-server.sh 2019-04-23 17:38:06 +02:00
a7f37fcf85 Update Dockerfile 2019-04-23 17:35:08 +02:00
d5d85ac911 Update start-server.sh 2019-04-23 17:26:45 +02:00
f6900bf5a5 Update Dockerfile 2019-04-23 17:17:42 +02:00
546dc7c319 Update start-server.sh 2019-04-23 17:08:45 +02:00
74d636577e Update start-server.sh 2019-04-23 16:54:42 +02:00
d448df5801 Update Dockerfile 2019-04-23 11:48:08 +02:00
a663bbb7fa Update start-server.sh 2019-04-23 11:47:05 +02:00
53a86c7ea2 Update start-server.sh 2019-04-23 10:07:34 +02:00
d7e0a36f88 Update Dockerfile 2019-04-23 10:01:28 +02:00
83d06598c4 Update README.md 2019-04-23 09:41:05 +02:00
45a951f94e Update Dockerfile 2019-04-23 09:40:24 +02:00
51c9ecf700 Update start-server.sh 2019-04-23 09:39:37 +02:00
3 changed files with 42 additions and 29 deletions

View File

@@ -1,11 +1,11 @@
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 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 && \
apt-get -y install --no-install-recommends lib32gcc-s1 libstdc++6:i386 && \
rm -rf /var/lib/apt/lists/*
ENV DATA_DIR="/serverdata"
@@ -15,18 +15,20 @@ 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 VALIDATE=""
ENV USERNAME=""
ENV PASSWRD=""
ENV USER="steam"
ENV DATA_PERM=770
RUN mkdir $DATA_DIR && \
mkdir $STEAMCMD_DIR && \
mkdir $SERVER_DIR && \
useradd -d $DATA_DIR -s /bin/bash $USER && \
chown -R $USER $DATA_DIR && \
useradd -d $SERVER_DIR -s /bin/bash $USER && \
chown -R $USER $SERVER_DIR && \
ulimit -n 2048
ADD /scripts/ /opt/scripts/

View File

@@ -1,36 +1,44 @@
# SteamCMD in Docker optimized for Unraid
This Docker will download and install SteamCMD. It will also install TeamFortress2 and run it.
This Docker will download and install SteamCMD. It will also install Chivalry: Medieval Warfare and run it.
**Update Notice:** Simply restart the container if a newer version of the game is available.
**Server Config:** You find the server config in: '../appdata/UDKGame/Config/' (eg: the servername is located in: 'PCServer-UDKGame.ini')
## 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: '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 |
| 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: '220070 -beta YOURBRANCH' (without quotes, replace YOURBRANCH with the branch or version you want to install). | 220070 |
| MAP | Map name (eg: 'aocffa-arena3_p', 'aocffa-hillside_p', 'aocffa-battlegrounds_v3_p') | aocffa-moor_p |
| ADMIN_PWD | Server Admin Password (can't be empty) | adminDocker |
| GAME_PARAMS | Values to start the server | ?port=7000?queryport=7010 |
| GAME_PARAMS_EXTRA | Type in your Extra Game Parameters seperated with a space and - (eg: -seekfreeloadingserver) | -seekfreeloadingserver |
| 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 TeamFortress2 -d \
-p 27015:27015 -p 27015:27015/udp \
--env 'GAME_ID=232250' \
--env 'GAME_NAME=tf' \
--env 'GAME_PORT=27015' \
--env 'GAME_PARAMS=-secure +maxplayers 32 +map de_dust2' \
docker run --name Chivalry-MedievalWarfare -d \
-p 7000:7000/udp -p 7010:7010/udp -p 27015:27015/udp \
--env 'GAME_ID=220070' \
--env 'MAP=aocffa-moor_p' \
--env 'ADMIN_PWD=adminDocker' \
--env 'GAME_PARAMS=?port=7000?queryport=7010' \
--env 'GAME_PARAMS_EXTRA=-seekfreeloadingserver' \
--env 'UID=99' \
--env 'GID=100' \
--volume /path/to/steamcmd:/serverdata/steamcmd \
--volume /path/to/teamfortress2:/serverdata/serverfiles \
ich777/steamcmd:tf2
--volume /path/to/chivalrymw:/serverdata/serverfiles \
ich777/steamcmd:chivalrymw
```
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/

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,14 +51,17 @@ else
fi
echo "---Prepare Server---"
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---"
if [ ! -f ${SERVER_DIR}/Binaries/Linux/lib/steamclient.so ]; then
cp ${STEAMCMD_DIR}/linux32/steamclient.so ${SERVER_DIR}/Binaries/Linux/lib/
fi
if [ ! -f ${SERVER_DIR}/Binaries/Linux/steam_appid.txt ]; then
echo "219640" > ${SERVER_DIR}/Binaries/Linux/steam_appid.txt
fi
sed -i "/ServerName=Dev Testing Server/c\ServerName=Chivalry Docker" ${SERVER_DIR}/UDKGame/Config/PCServer-UDKGame.ini
sed -i "/MessageOfTheDay=Welcome to a UDK Server\!/c\MessageOfTheDay=Welcome to Chivalry: Medieval Warfare in Docker on Unraid\!" ${SERVER_DIR}/UDKGame/Config/PCServer-UDKGame.ini
chmod -R ${DATA_PERM} ${DATA_DIR}
echo "---Server ready---"
echo "---Start Server---"
${SERVER_DIR}/srcds_run -game ${GAME_NAME} ${GAME_PARAMS} -console +port ${GAME_PORT}
cd ${SERVER_DIR}/Binaries/Linux
${SERVER_DIR}/Binaries/Linux/UDKGameServer-Linux ${MAP}?adminpassword=${ADMIN_PWD}?steamsockets${GAME_PARAMS} ${GAME_PARAMS_EXTRA}