Git Product home page Git Product logo

vrising-docker's Introduction

V Rising Docker Image

This is a Docker image for V Rising that uses Wine to run it.

There is no dedicated server for Linux yet, but there will be one soon™.
As soon as there is one, this image will be updated accordingly.

Usage

You can build the Docker image yourself (see below) or use the pre-built image:

docker pull public.ecr.aws/ponjimon/vrising:latest

To run it, you have to mount a volume and attach it to /vrising/server-data. Inside that volume, the server will store the save data and settings.

docker run -it -p 27015:27015/udp -p 27016:27016/udp -v /home/vrising/server-data:/vrising/server-data public.ecr.aws/ponjimon/vrising:latest

Alternatively, you can use docker-compose. Simply run docker-compose up -d to spin up a container. The docker-compose.yaml file assumes that there is a directory ${HOME}/vrising-server in which the container will mount a volume and store the saves where you can add your custom settings.

Obviously, you would have to adapt the ports and/or volume name if you changed the settings.

Note: If the local user's UID/GID is not 1000, you need to run the container like this:

docker run -it -p 27015:27015/udp -p 27016:27016/udp -e LOCAL_USER_ID=`id -u $USER` -e LOCAL_GROUP_ID=`id -g $USER` -v /home/vrising/server-data:/vrising/server-data public.ecr.aws/ponjimon/vrising:latest

This makes sure that there won't be any permission conflicts.

Step by Step

We assume we're logged in to a Linux/Ubuntu machine under the user vrising.

  1. Pull latest Docker image:

    docker pull public.ecr.aws/ponjimon/vrising:latest
  2. Create a folder anywhere on your system where you want the save files and the server settings to be. Let's assume the home directory:

    mkdir -p /home/vrising/server-data/Settings
  3. Put your desired settings into the newly created Settings folder. Refer to the official instructions to find out which settings (for example ServerHostSettings.json)

  4. Start the server:

    docker run -it -p 27015:27015/udp -p 27016:27016/udp -v /home/vrising/server-data:/vrising/server-data public.ecr.aws/ponjimon/vrising:latest

Build your own

Feel free to modify the Dockerfile and build it:

docker build -t my-vrising-server:latest .
docker push my.regist.try/my-vrising-server:latest

Warning: Do not actually run the command above as is. It's just for demonstration purposes.

Good to Know

The server version (using SteamCMD) is baked into the image. So the image has to be rebuilt everytime the developers publish a new server version.

Credits

Props to @fragsoc for the inspiration based on fragsoc/steamcmd-wine-xvfb.

vrising-docker's People

Contributors

ponjimon avatar thecrius avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.