Fix docker hub build process
This commit is contained in:
parent
cafdf87428
commit
77376de844
@ -1 +1,64 @@
|
|||||||
FROM hackebein/garrysmod:master
|
FROM hackebein/steamcmd:latest
|
||||||
|
|
||||||
|
ARG BASEDIR=/opt/garrysmod
|
||||||
|
|
||||||
|
ENV BASEDIR=$BASEDIR \
|
||||||
|
PORT="27015" \
|
||||||
|
TICKRATE="66" \
|
||||||
|
WORKSHOPCOLLECTIONID="" \
|
||||||
|
#http://steamcommunity.com/dev/apikey
|
||||||
|
AUTHKEY="" \
|
||||||
|
CLIENTPORT="27005" \
|
||||||
|
GAMEMODE="sandbox" \
|
||||||
|
MAP="gm_flatgrass" \
|
||||||
|
#http://steamcommunity.com/dev/managegameservers APPID: 4000
|
||||||
|
GLST="" \
|
||||||
|
CONFIG="server.cfg" \
|
||||||
|
MAXPLAYERS="16" \
|
||||||
|
LOADURLIMG="http://www.pixelstalk.net/wp-content/uploads/2016/03/Cracked-Screen-Background-cute.jpg" \
|
||||||
|
LOADURL="data:text/html, <style>html, body{ padding:0;margin:0;background:#000 }</style><img src='${LOADURLIMG}' width='100%' height='100%'>" \
|
||||||
|
CUSTOMPARAMETERS=""
|
||||||
|
|
||||||
|
RUN apt-get update -q && \
|
||||||
|
apt-get install -yqq lib32tinfo5 && \
|
||||||
|
apt-get clean && \
|
||||||
|
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||||
|
|
||||||
|
RUN /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/*
|
||||||
|
|
||||||
|
COPY cfg $BASEDIR/garrysmod/cfg
|
||||||
|
|
||||||
|
VOLUME [ "$BASEDIR/garrysmod/volume" ]
|
||||||
|
|
||||||
|
WORKDIR $BASEDIR
|
||||||
|
|
||||||
|
EXPOSE 27015/udp 27015/tcp
|
||||||
|
|
||||||
|
ENTRYPOINT []
|
||||||
|
CMD [ \
|
||||||
|
"sh", \
|
||||||
|
"-c", \
|
||||||
|
"$BASEDIR/srcds_run \
|
||||||
|
-game garrysmod \
|
||||||
|
-strictportbind \
|
||||||
|
-port ${PORT} \
|
||||||
|
-tickrate ${TICKRATE} \
|
||||||
|
+host_workshop_collection ${WORKSHOPCOLLECTIONID} \
|
||||||
|
-authkey ${AUTHKEY} \
|
||||||
|
+clientport ${CLIENTPORT} \
|
||||||
|
+gamemode ${GAMEMODE} \
|
||||||
|
+map ${MAP} \
|
||||||
|
+sv_setsteamaccount ${GLST} \
|
||||||
|
+servercfgfile ${CONFIG} \
|
||||||
|
-maxplayers ${MAXPLAYERS} \
|
||||||
|
+sv_loadingurl ${LOADURL} \
|
||||||
|
${CUSTOMPARAMETERS}" \
|
||||||
|
]
|
@ -1,15 +0,0 @@
|
|||||||
FROM hackebein/garrysmod:minimal
|
|
||||||
|
|
||||||
ARG BASEDIR=/opt/garrysmod
|
|
||||||
|
|
||||||
RUN /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/*
|
|
||||||
|
|
||||||
COPY cfg $BASEDIR/garrysmod/cfg
|
|
64
recommended/Dockerfile
Normal file
64
recommended/Dockerfile
Normal file
@ -0,0 +1,64 @@
|
|||||||
|
FROM hackebein/steamcmd:latest
|
||||||
|
|
||||||
|
ARG BASEDIR=/opt/garrysmod
|
||||||
|
|
||||||
|
ENV BASEDIR=$BASEDIR \
|
||||||
|
PORT="27015" \
|
||||||
|
TICKRATE="66" \
|
||||||
|
WORKSHOPCOLLECTIONID="" \
|
||||||
|
#http://steamcommunity.com/dev/apikey
|
||||||
|
AUTHKEY="" \
|
||||||
|
CLIENTPORT="27005" \
|
||||||
|
GAMEMODE="sandbox" \
|
||||||
|
MAP="gm_flatgrass" \
|
||||||
|
#http://steamcommunity.com/dev/managegameservers APPID: 4000
|
||||||
|
GLST="" \
|
||||||
|
CONFIG="server.cfg" \
|
||||||
|
MAXPLAYERS="16" \
|
||||||
|
LOADURLIMG="http://www.pixelstalk.net/wp-content/uploads/2016/03/Cracked-Screen-Background-cute.jpg" \
|
||||||
|
LOADURL="data:text/html, <style>html, body{ padding:0;margin:0;background:#000 }</style><img src='${LOADURLIMG}' width='100%' height='100%'>" \
|
||||||
|
CUSTOMPARAMETERS=""
|
||||||
|
|
||||||
|
RUN apt-get update -q && \
|
||||||
|
apt-get install -yqq lib32tinfo5 && \
|
||||||
|
apt-get clean && \
|
||||||
|
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||||
|
|
||||||
|
RUN /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/*
|
||||||
|
|
||||||
|
COPY cfg $BASEDIR/garrysmod/cfg
|
||||||
|
|
||||||
|
VOLUME [ "$BASEDIR/garrysmod/volume" ]
|
||||||
|
|
||||||
|
WORKDIR $BASEDIR
|
||||||
|
|
||||||
|
EXPOSE 27015/udp 27015/tcp
|
||||||
|
|
||||||
|
ENTRYPOINT []
|
||||||
|
CMD [ \
|
||||||
|
"sh", \
|
||||||
|
"-c", \
|
||||||
|
"$BASEDIR/srcds_run \
|
||||||
|
-game garrysmod \
|
||||||
|
-strictportbind \
|
||||||
|
-port ${PORT} \
|
||||||
|
-tickrate ${TICKRATE} \
|
||||||
|
+host_workshop_collection ${WORKSHOPCOLLECTIONID} \
|
||||||
|
-authkey ${AUTHKEY} \
|
||||||
|
+clientport ${CLIENTPORT} \
|
||||||
|
+gamemode ${GAMEMODE} \
|
||||||
|
+map ${MAP} \
|
||||||
|
+sv_setsteamaccount ${GLST} \
|
||||||
|
+servercfgfile ${CONFIG} \
|
||||||
|
-maxplayers ${MAXPLAYERS} \
|
||||||
|
+sv_loadingurl ${LOADURL} \
|
||||||
|
${CUSTOMPARAMETERS}" \
|
||||||
|
]
|
19
recommended/cfg/mount.cfg
Normal file
19
recommended/cfg/mount.cfg
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
|
||||||
|
//
|
||||||
|
// 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" ""
|
||||||
|
}
|
||||||
|
|
||||||
|
|
11
recommended/cfg/mountdepots.txt
Normal file
11
recommended/cfg/mountdepots.txt
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
"gamedepotsystem"
|
||||||
|
{
|
||||||
|
"cstrike" "1"
|
||||||
|
//"hl1" "1"
|
||||||
|
//"hl1_hd" "1"
|
||||||
|
//"hl2" "1"
|
||||||
|
//"hl2mp" "1"
|
||||||
|
//"episodic" "1"
|
||||||
|
//"ep2" "1"
|
||||||
|
//"lostcoast" "1"
|
||||||
|
}
|
2
recommended/cfg/server.cfg
Normal file
2
recommended/cfg/server.cfg
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
// Garry's Mod - Config
|
||||||
|
exec ../volume/server.cfg
|
Loading…
Reference in New Issue
Block a user