Tribes 2 dedicated server running in a docker container
Find a file
sairuk 01f57ef00a - Container no longer runs in root context, now switches to gameserv
user before launching server
- Removed supervisord dependancy
- Add (assumed) additional mod folders
2019-02-16 10:43:45 +11:00
_custom - Container no longer runs in root context, now switches to gameserv 2019-02-16 10:43:45 +11:00
_scripts Inital commit 2019-02-13 20:41:52 +11:00
Dockerfile - Container no longer runs in root context, now switches to gameserv 2019-02-16 10:43:45 +11:00
LICENSE Initial commit 2019-02-13 20:31:34 +11:00
README.md Inital commit 2019-02-13 20:41:52 +11:00

Docker TribesNext

Information

TribesNext dedicated server patched and running within Docker under wine.

This is TribesNext RC2a with the wine patches included.

The image will pull required files and install them at build time (providing the sources are live).

Docker image is completely self contained when built; it is currently based off Debian Jessie 32bit. This brings in the server at around 1.6GB once built.

The server runs as the gameserv user

Ports

Exposed ports are 666, 28000, the standard TribesNext ports, these can be mapped to whatever you need when you run the container, see the run_container script for an example of how to execute this.

Volumes

No volumes are used

Usage

Build the image

docker build . -t tribesnext-server

Run a container

NB: the --rm arg will destroy the container when stopped.

docker run -d --rm \
-p 27999:666/tcp \
-p 28000:28000/udp \
--name tribesnext-server \
tribesnext-server:latest

Stop container

docker stop tribesnext-server

Server Customization

You can customize the server at build time by dropping the appropriate files at the appropriate locations in _custom/, these will be copied into the image in the appropriate places overwriting the default files if present.

Currently supports

  • base
  • Classic

If you want to add a new mod this will require a new COPY instruction added to the Dockerfile and an image rebuild, or raise an issue/pull request and we can look at updating the main repo.

You can override the following defaults at build time

ARG SRVUSER=gameserv
ARG SRVUID=1000
ARG SRVDIR=/tmp/tribes2/

Notes

You can modify the installer script to update the source locations of the required files.

tribesnext-server-installer may also be used in standalone mode to install TribesNext RC2a on the host system under wine but your mileage may vary.

Testing has been minimal

2do

  • Thinner base OS
  • Reduce duplicate data across scripts