From 39f743c770b21524c605013e2287d9acefb94a5a Mon Sep 17 00:00:00 2001 From: Blogshot <15980143+Blogshot@users.noreply.github.com> Date: Fri, 20 May 2022 11:04:39 +0200 Subject: [PATCH 1/3] Build (aptly named) docker image and use user-agnostic volume path --- docker-compose.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 707d016..4997e0d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,12 +2,13 @@ version: "2.1" services: vrising: container_name: vrising-server - image: vrising:latest - volumes: - - /home/googlrr/VRisingServer:/root/.wine/drive_c/users/root/AppData/LocalLow/Stunlock Studios/VRisingServer/Saves - - /home/googlrr/VRisingSettings:/root/.wine/drive_c/users/root/AppData/LocalLow/Stunlock Studios/VRisingServer/Settings/ - ports: + build: . + image: vrising-local:latest + volumes: + - /opt/vrising/server:/root/.wine/drive_c/users/root/AppData/LocalLow/Stunlock Studios/VRisingServer/Saves + - /opt/vrising/settings:/root/.wine/drive_c/users/root/AppData/LocalLow/Stunlock Studios/VRisingServer/Settings/ + ports: - "27015:27015/udp" - "27016:27016/udp" restart: unless-stopped - tty: true \ No newline at end of file + tty: true From e4afdfe31a869c9c7b4687a4d6d7a436a3324502 Mon Sep 17 00:00:00 2001 From: Blogshot <15980143+Blogshot@users.noreply.github.com> Date: Fri, 20 May 2022 11:11:05 +0200 Subject: [PATCH 2/3] Clarify ReadMe --- readme.md | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/readme.md b/readme.md index b95d207..aa77e18 100644 --- a/readme.md +++ b/readme.md @@ -4,23 +4,20 @@ using Wine in an ubuntu container This isn't really meant to be a guide, just publishing because at the moment not much info on setting this up out there. I'm no docker expert so there's probably a better way to go about this. Sorry if these steps aren't 100% accurate: -1. Clone the repo -git clone https://github.com/Googlrr/V-Rising-Docker-Linux +1. Clone the repo +`git clone https://github.com/Googlrr/V-Rising-Docker-Linux` -2. CD to the directory -cd V-Rising-Docker-Linux +2. CD to the directory +`cd V-Rising-Docker-Linux` -3. Modify the ServerGameSettings.json and ServerHostSettings.json for whatever you want. +3. Modify the `ServerGameSettings.json` and `ServerHostSettings.json` to your liking. -4. Move all the files in /settings/ to some location. +4. Move the files in `settings/` to a new location (e.g. `/opt/vrising/settings/`). + +5. Modify docker compose and set the save and settings volumes according to step 4 (e.g. `/opt/vrising/settings` and `/opt/vrising/server`) -4. Build the image -sudo docker build . -t vrising:latest - -5. Modify docker compose, set a path for where you want your saves. Set the save and settings directories - -6. compose -sudo docker-compose up -d +6. Start the server +`sudo docker-compose up -d ` Really messy setup but this was the only way I could figure out how to work it lol. Never used Wine before. Hope for a native linux server soon! From 09351a9e654a147eacc419c9764c8aa088286160 Mon Sep 17 00:00:00 2001 From: Blogshot <15980143+Blogshot@users.noreply.github.com> Date: Fri, 20 May 2022 12:05:01 +0200 Subject: [PATCH 3/3] Update ReadMe with clearer instructions --- readme.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/readme.md b/readme.md index aa77e18..353c9a7 100644 --- a/readme.md +++ b/readme.md @@ -21,3 +21,13 @@ This isn't really meant to be a guide, just publishing because at the moment not Really messy setup but this was the only way I could figure out how to work it lol. Never used Wine before. Hope for a native linux server soon! +# Updating the server +Before and after updating the server it might be sensible to check the currently running version: +`docker logs vrising-server | grep "VRisingServer v" -A1 | tail -2` + +This container only downloads/updates the server application when `/root/.wine/drive_c/steamcmd/steaminstalled.txt` (which is created on first startup) does not exist inside the container. There are two ways to update the server: +- `docker exec vrising-server rm /root/.wine/drive_c/steamcmd/steaminstalled.txt && docker restart vrising-server` +to delete the file and restart the container, which updates the already installed server. + +- `docker-compose up --build -d` +to recreate the container from scratch without `steaminstalled.txt`.