update build process

This commit is contained in:
Lars Olzem 2018-08-17 02:49:09 +01:00
parent ec78959cee
commit 002b9b117d
No known key found for this signature in database
GPG Key ID: 358CF5698DDD556E
14 changed files with 29 additions and 183 deletions

29
Dockerfile Normal file
View File

@ -0,0 +1,29 @@
FROM hackebein/srcds
ENV APPS="4020" \
TICKRATE="66" \
MAXPLAYERS="16" \
#http://steamcommunity.com/dev/apikey
AUTHKEY="" \
WORKSHOPCOLLECTIONID="" \
# sandbox or terrortown
GAMEMODE="sandbox" \
MAP="gm_flatgrass" \
#http://steamcommunity.com/dev/managegameservers APPID: 4000
GLST="" \
CONFIG="server.cfg" \
CUSTOMPARAMETERS="" \
SRCDSPARAMS="\
-game garrysmod \
-tickrate ${TICKRATE} \
-maxplayers ${MAXPLAYERS} \
-authkey ${AUTHKEY} \
+host_workshop_collection ${WORKSHOPCOLLECTIONID} \
+gamemode ${GAMEMODE} \
+map ${MAP} \
+sv_setsteamaccount ${GLST} \
+servercfgfile ${CONFIG} \
${CUSTOMPARAMETERS} \
"
COPY cfg $BASEDIR/garrysmod/cfg

View File

@ -1,10 +1,3 @@
# Supported tags and respective `Dockerfile` links
* `minimal` [(minimal/Dockerfile)](https://github.com/Hackebein/docker-garrysmod/blob/master/minimal/Dockerfile)
* `latest` [(latest/Dockerfile)](https://github.com/Hackebein/docker-garrysmod/blob/master/latest/Dockerfile)
* ~~`full` (full/Dockerfile).~~ coming soon
* ~~`beta` (beta/Dockerfile).~~ coming soon
# What is Garry's Mod?
Garry's Mod is a physics sandbox. There aren't any predefined aims or goals. We give you the tools and leave you to play.

View File

@ -1,63 +0,0 @@
FROM hackebein/steamcmd:latest
ARG BASEDIR=/opt/garrysmod
ONBUILD ARG BASEDIR=$BASEDIR
ENV BASEDIR=$BASEDIR \
PORT="27015" \
TICKRATE="66" \
MAXPLAYERS="16" \
#http://steamcommunity.com/dev/apikey
AUTHKEY="" \
WORKSHOPCOLLECTIONID="" \
CLIENTPORT="27005" \
# sandbox or terrortown
GAMEMODE="sandbox" \
MAP="gm_flatgrass" \
#http://steamcommunity.com/dev/managegameservers APPID: 4000
GLST="" \
CONFIG="${GAMEMODE}.cfg" \
CUSTOMPARAMETERS=""
RUN apt-get update -q \
&& apt-get install -yqq lib32tinfo5 paxctl \
&& apt-get clean \
&& rm -rf \
/tmp/* \
/var/lib/apt/lists/* \
/var/tmp/* \
&& /usr/games/steamcmd \
+login anonymous \
+force_install_dir $BASEDIR \
# cstrike
+app_update 232330 -validate -language en \
# garrysmod
+app_update 4020 -validate -language en \
+quit \
&& rm -rf $BASEDIR/garrysmod/cfg/* \
&& paxctl -cm "$BASEDIR/srcds_linux"
COPY cfg $BASEDIR/garrysmod/cfg
WORKDIR $BASEDIR
EXPOSE 27015/udp
CMD [ \
"sh", \
"-c", \
"$BASEDIR/srcds_run \
-game garrysmod \
-strictportbind \
-port ${PORT} \
-tickrate ${TICKRATE} \
-maxplayers ${MAXPLAYERS} \
-authkey ${AUTHKEY} \
+host_workshop_collection ${WORKSHOPCOLLECTIONID} \
+clientport ${CLIENTPORT} \
+gamemode ${GAMEMODE} \
+map ${MAP} \
+sv_setsteamaccount ${GLST} \
+servercfgfile ${CONFIG} \
${CUSTOMPARAMETERS}" \
]

View File

@ -1,19 +0,0 @@
//
// Use this file to mount additional paths to the filesystem
// DO NOT add a slash to the end of the filename
//
"mountcfg"
{
"cstrike" "cstrike"
//"hl1" ""
//"hl1_hd" ""
//"hl2" ""
//"hl2mp" ""
//"episodic" ""
//"ep2" ""
//"lostcoast" ""
}

View File

@ -1,11 +0,0 @@
"gamedepotsystem"
{
"cstrike" "1"
//"hl1" "1"
//"hl1_hd" "1"
//"hl2" "1"
//"hl2mp" "1"
//"episodic" "1"
//"ep2" "1"
//"lostcoast" "1"
}

View File

@ -1,4 +0,0 @@
// Garry's Mod - sandbox - Config
// https://github.com/garrynewman/garrysmod/blob/master/garrysmod/gamemodes/sandbox/sandbox.txt
exec server.cfg
exec my.sandbox.cfg

View File

@ -1,3 +0,0 @@
// Garry's Mod - Config
// https://developer.valvesoftware.com/wiki/Console_Command_List
exec my.server.cfg

View File

@ -1,4 +0,0 @@
// Garry's Mod - terrortown - Config
// https://github.com/garrynewman/garrysmod/blob/master/garrysmod/gamemodes/terrortown/terrortown.txt
exec server.cfg
exec my.terrortown.cfg

View File

@ -1,61 +0,0 @@
FROM hackebein/steamcmd:latest
ARG BASEDIR=/opt/garrysmod
ONBUILD ARG BASEDIR=$BASEDIR
ENV BASEDIR=$BASEDIR \
PORT="27015" \
TICKRATE="66" \
MAXPLAYERS="16" \
#http://steamcommunity.com/dev/apikey
AUTHKEY="" \
WORKSHOPCOLLECTIONID="" \
CLIENTPORT="27005" \
# sandbox or terrortown
GAMEMODE="sandbox" \
MAP="gm_flatgrass" \
#http://steamcommunity.com/dev/managegameservers APPID: 4000
GLST="" \
CONFIG="${GAMEMODE}.cfg" \
CUSTOMPARAMETERS=""
RUN apt-get update -q \
&& apt-get install -yqq lib32tinfo5 paxctl \
&& apt-get clean \
&& rm -rf \
/tmp/* \
/var/lib/apt/lists/* \
/var/tmp/* \
&& /usr/games/steamcmd \
+login anonymous \
+force_install_dir $BASEDIR \
# garrysmod
+app_update 4020 -validate -language en \
+quit \
&& rm -rf $BASEDIR/garrysmod/cfg/* \
&& paxctl -cm "$BASEDIR/srcds_linux"
COPY cfg $BASEDIR/garrysmod/cfg
WORKDIR $BASEDIR
EXPOSE 27015/udp
CMD [ \
"sh", \
"-c", \
"$BASEDIR/srcds_run \
-game garrysmod \
-strictportbind \
-port ${PORT} \
-tickrate ${TICKRATE} \
-maxplayers ${MAXPLAYERS} \
-authkey ${AUTHKEY} \
+host_workshop_collection ${WORKSHOPCOLLECTIONID} \
+clientport ${CLIENTPORT} \
+gamemode ${GAMEMODE} \
+map ${MAP} \
+sv_setsteamaccount ${GLST} \
+servercfgfile ${CONFIG} \
${CUSTOMPARAMETERS}" \
]

View File

@ -1,4 +0,0 @@
// Garry's Mod - sandbox - Config
// https://github.com/garrynewman/garrysmod/blob/master/garrysmod/gamemodes/sandbox/sandbox.txt
exec server.cfg
exec my.sandbox.cfg

View File

@ -1,3 +0,0 @@
// Garry's Mod - Config
// https://developer.valvesoftware.com/wiki/Console_Command_List
exec my.server.cfg

View File

@ -1,4 +0,0 @@
// Garry's Mod - terrortown - Config
// https://github.com/garrynewman/garrysmod/blob/master/garrysmod/gamemodes/terrortown/terrortown.txt
exec server.cfg
exec my.terrortown.cfg