GithubHelp home page GithubHelp logo

brainesy / warfork-docker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gelmo/warfork-docker

0.0 0.0 0.0 22 KB

Warfork server on Docker!

Home Page: https://hub.docker.com/r/gelmo/warfork-docker

License: MIT License

Shell 71.73% Dockerfile 28.27%

warfork-docker's Introduction

warfork-docker

Warfork server on Docker!

How to Use This Image

$ docker run \
  -v=wf:/home/warfork/server \
  -v=/path/to/wflogs:/home/warfork/.local/share/warfork-2.1/basewf \
  --net=host \
  gelmo/warfork-docker

Environment Variables

WF_CUSTOM_CONFIGS_DIR

Default: /var/wf

Absolute path to a directory in the container containing custom config and map files. Changing this is not recommended in order to follow the documentation.

WF_PARAMS

Additional parameters to pass to wf_server.x86_64 (for example, +sv_hostname "Insta Server" +g_instagib "1").

Populate with Own Configs

The server can be populated with your own config files and maps by copying the files from the custom configs directory located at WF_CUSTOM_CONFIGS_DIR to the basewf folder at each start of the container. WF_CUSTOM_CONFIGS_DIR is a mounted directory from the host system. The custom configs directory must have same folder structure as the basewf folder in order to add or overwrite the files at the paths.

Example

Host

Add configs and maps to /home/user/wf:

.
├── progs
│   └── gametypes
│       └── configs
│           ├── wipeout.as # Will be added
│           ├── wipeout.gt # Will be added
│           └── wipeout.gtd # Will be added
├── dedicated_autoexec.cfg # Will be overwritten
└── map_claustrophobia.pk3 # Will be added
Container

Mount /home/user/wf to WF_CUSTOM_CONFIGS_DIR in the container:

$ docker run \
  -v=wf:/home/warfork/server \
  -v=/path/to/wflogs:/home/warfork/.local/share/warfork-2.1/basewf \
  -v=/home/user/wf:/var/wf \ # Mount the custom configs directory
  --net=host \
  gelmo/warfork-docker

Updating the Server

Once the server has been installed, the container will check for an update at every start.

Manually

Restart the container with docker restart.

Example

Container named wf:

$ docker restart wf

Multiple Instances (More Info Soon)

warfork-docker's People

Contributors

gelmo avatar brainesy 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.