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:
-
Clone the repo
git clone https://github.com/Googlrr/V-Rising-Docker-Linux
-
CD to the directory
cd V-Rising-Docker-Linux
-
Modify the
ServerGameSettings.json
andServerHostSettings.json
to your liking. -
Move the files in
settings/
to a new location (e.g./opt/vrising/settings/
). -
Modify docker compose and set the save and settings volumes according to step 4 (e.g.
/opt/vrising/settings
and/opt/vrising/server
) -
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!
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 withoutsteaminstalled.txt
.