add WorkshopDL support
This commit is contained in:
parent
0b7138e1f3
commit
2252753d07
@ -16,8 +16,11 @@ ENV \
|
|||||||
# http://steamcommunity.com/dev/managegameservers
|
# http://steamcommunity.com/dev/managegameservers
|
||||||
GLST="" \
|
GLST="" \
|
||||||
#
|
#
|
||||||
# Workshop (require API)
|
# Workshop server download (require API)
|
||||||
WORKSHOPCOLLECTIONID="" \
|
WORKSHOP="\${WORKSHOPCOLLECTIONID:-}" \
|
||||||
|
#
|
||||||
|
# Workshop client download (require API)
|
||||||
|
WORKSHOPDL="" \
|
||||||
#
|
#
|
||||||
# Server config
|
# Server config
|
||||||
GAME="garrysmod" \
|
GAME="garrysmod" \
|
||||||
@ -35,7 +38,7 @@ ENV \
|
|||||||
-tickrate \${TICKRATE} \
|
-tickrate \${TICKRATE} \
|
||||||
-maxplayers \${MAXPLAYERS} \
|
-maxplayers \${MAXPLAYERS} \
|
||||||
-authkey \${AUTHKEY} \
|
-authkey \${AUTHKEY} \
|
||||||
+host_workshop_collection \${WORKSHOPCOLLECTIONID} \
|
+host_workshop_collection \${WORKSHOP} \
|
||||||
+gamemode \${GAMEMODE} \
|
+gamemode \${GAMEMODE} \
|
||||||
+map \${MAP} \
|
+map \${MAP} \
|
||||||
+servercfgfile \${CONFIG} \
|
+servercfgfile \${CONFIG} \
|
||||||
|
@ -67,7 +67,8 @@ docker run -it \
|
|||||||
-e "AUTHKEY=..." \
|
-e "AUTHKEY=..." \
|
||||||
-e "GAMEMODE=terrortown" \
|
-e "GAMEMODE=terrortown" \
|
||||||
-e "MAP=ttt_minecraft_b5" \
|
-e "MAP=ttt_minecraft_b5" \
|
||||||
-e "WORKSHOPCOLLECTIONID=843519054" \
|
-e "WORKSHOP=843519054" \
|
||||||
|
-e "WORKSHOPDL=843519054" \
|
||||||
-v ./server.cfg:/opt/steam/garrysmod/cfg/server.cfg \
|
-v ./server.cfg:/opt/steam/garrysmod/cfg/server.cfg \
|
||||||
hackebein/garrysmod
|
hackebein/garrysmod
|
||||||
```
|
```
|
||||||
@ -94,6 +95,12 @@ MAXPLAYERS: Max players
|
|||||||
CUSTOMPARAMETERS: additional parameters
|
CUSTOMPARAMETERS: additional parameters
|
||||||
(`Default: `)
|
(`Default: `)
|
||||||
|
|
||||||
|
WORKSHOP: downloads workshop collection for server
|
||||||
|
(`Default: `)
|
||||||
|
|
||||||
|
WORKSHOPDL: downloads workshop collection for client before joining
|
||||||
|
(`Default: `)
|
||||||
|
|
||||||
## More Options
|
## More Options
|
||||||
|
|
||||||
You can found more configuration options on the parent image page [hackebein/srcds](https://hub.docker.com/r/hackebein/srcds)
|
You can found more configuration options on the parent image page [hackebein/srcds](https://hub.docker.com/r/hackebein/srcds)
|
||||||
|
Loading…
Reference in New Issue
Block a user