From 8b1af25b4a8128c69cfabe1135b081b42897b5a3 Mon Sep 17 00:00:00 2001 From: astra Date: Fri, 28 Apr 2023 12:40:15 +0000 Subject: [PATCH 1/2] Update Dockerfile --- Dockerfile | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 67827fa..38c2056 100644 --- a/Dockerfile +++ b/Dockerfile @@ -36,8 +36,4 @@ WORKDIR $HOME EXPOSE 27015 -# VOLUME $CSGOSERVER/csgo/cfg -# VOLUME $CSGOSERVER/csgo/maps -# VOLUME $CSGOSERVER/csgo/sourcemod - CMD ["/run.sh"] From de6dfdcca34577fcccc39af7b9c8f1a7382d9122 Mon Sep 17 00:00:00 2001 From: astra Date: Fri, 28 Apr 2023 12:40:18 +0000 Subject: [PATCH 2/2] Add README.md --- README.md | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..ec8d5d8 --- /dev/null +++ b/README.md @@ -0,0 +1,38 @@ +csgo (Docker/Podman) +==================== + +Usage: + +```bash +$ git pull ssh://git@git.zio.sh:2222/astra/csgo.git +$ cd csgo +$ podman build -t astra/csgo:latest . +$ podman run \ + --replace \ + --name csgo \ + --hostname csgo \ + --publish 27015:27015 \ + --publish 27015:27015/udp \ + --env-file .env \ + --volume csgo_steam:/server/Steam \ + --volume csgo:/server/csgo \ + --volume csgo_addons:/server/csgo/csgo/addons \ + --volume csgo_cfg:/server/csgo/csgo/cfg \ + --volume csgo_maps:/server/csgo/csgo/maps \ + --volume csgo_sound:/server/csgo/csgo/sound \ + --volume csgo_models:/server/csgo/csgo/models \ + --volume csgo_materials:/server/csgo/csgo/materials \ + --volume ./rcon.yaml:/server/rcon.yaml \ + astra/csgo:latest +``` + +.env contents: +```bash +RCON_PASSWORD= +SERVER_PASSWORD= +SERVER_HOSTNAME= +TICKRATE=128 +STEAMTOKEN= +STARTARGS=-nobots +game_type 3 +game_mode 0 -ip 0.0.0.0 -maxplayers_override 40 +RUNSCRIPT=true # comment out to not have game verify/update +``` \ No newline at end of file