Compare commits
27 Commits
garrysmod
...
chivalrymw
Author | SHA1 | Date | |
---|---|---|---|
a23ec2db55 | |||
771cabb9fa
|
|||
8831a4cc3c
|
|||
ba2d645d7f
|
|||
0f5315ce52
|
|||
c3d7fab8d4
|
|||
203df5243f | |||
7d9c8b9cf5 | |||
c60595c261 | |||
085965ae58 | |||
02142603fa | |||
c462756343 | |||
d67f46d5f4 | |||
2a2ff0efa6 | |||
8eb4317b39 | |||
4aa289f92f | |||
66df523708 | |||
477d46c985 | |||
336838900e | |||
a080c77f61 | |||
8944322d49 | |||
ba464b9bd1 | |||
bf873f21f3 | |||
3d7e698bc5 | |||
a29620dd5a | |||
8f13b8850d | |||
7d0b2023cc |
@@ -3,8 +3,9 @@ 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 && \
|
||||
RUN dpkg --add-architecture i386 && \
|
||||
apt-get update && \
|
||||
apt-get -y install --no-install-recommends lib32gcc-s1 libstdc++6:i386 && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
ENV DATA_DIR="/serverdata"
|
||||
@@ -26,8 +27,8 @@ 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/
|
||||
|
32
README.md
32
README.md
@@ -1,36 +1,40 @@
|
||||
# SteamCMD in Docker optimized for Unraid
|
||||
This Docker will download and install SteamCMD. It will also install Garry's Mod 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: '4020 -beta YOURBRANCH' (without quotes, replace YOURBRANCH with the branch or version you want to install). | 4020 |
|
||||
| GAME_NAME | SRCDS gamename | garrysmod |
|
||||
| GAME_PARAMS | Values to start the server | -secure +maxplayers 12 +map gm_flatgrass |
|
||||
| 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 | true |
|
||||
| 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 GarrysMod -d \
|
||||
-p 27015:27015 -p 27015:27015/udp \
|
||||
--env 'GAME_ID=4020' \
|
||||
--env 'GAME_NAME=garrysmod' \
|
||||
--env 'GAME_PORT=27015' \
|
||||
--env 'GAME_PARAMS=-secure +maxplayers 12 +map gm_flatgrass' \
|
||||
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/garrysmod:/serverdata/serverfiles \
|
||||
ich777/steamcmd:garrysmod
|
||||
--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!
|
||||
|
@@ -51,8 +51,17 @@ else
|
||||
fi
|
||||
|
||||
echo "---Prepare Server---"
|
||||
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}
|
Reference in New Issue
Block a user