docker-tribesnext-server/README.md

79 lines
2.1 KiB
Markdown
Raw Normal View History

2019-02-13 09:41:52 +00:00
# Docker TribesNext
2020-01-08 07:49:43 +00:00
## Fork Updates
- [Classic v1.5.2](http://tribes2stats.com/files/mods/classic_v152.zip)
- [Ruby 1.9](https://ftp.ruby-lang.org/pub/ruby/binaries/mswin32/unstable/ruby-1.9.0-2-i386-mswin32.zip)
---
2019-02-13 09:41:52 +00:00
## Information
2020-01-08 07:49:43 +00:00
TribesNext dedicated server patched and running within Docker under wine.
2019-02-13 09:41:52 +00:00
2020-01-08 07:49:43 +00:00
*This is TribesNext RC2a with the wine patches included.*
2019-02-13 09:41:52 +00:00
The image will pull required files and install them at build time (providing the sources are live).
2020-01-08 07:49:43 +00:00
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.
2019-02-13 09:41:52 +00:00
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, example below.
2019-02-13 09:41:52 +00:00
## Volumes
No volumes are used
## Usage
**Build the image**
2020-01-08 07:49:43 +00:00
`docker build . -t tribesnext-server`
2019-02-13 09:41:52 +00:00
**Run a container**
2020-01-08 07:49:43 +00:00
NB: the `--rm` arg will destroy the container when stopped; internal ports (666) can be mapped to available host ports (27999) per container
```
docker run -d --rm \
-p 27999:666/tcp \
-p 28000:28000/udp \
--name tribesnext-server \
tribesnext-server:latest
```
2019-02-13 09:41:52 +00:00
**Stop container**
2020-01-08 07:49:43 +00:00
`docker stop tribesnext-server`
2019-02-13 09:41:52 +00:00
## Server Customization
2020-01-08 07:49:43 +00:00
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 into the install location within the container at build time.
2019-12-22 20:26:53 +00:00
2019-02-13 09:41:52 +00:00
You can override the following defaults at build time
```
ARG SRVUSER=gameserv
ARG SRVUID=1000
ARG SRVDIR=/tmp/tribes2/
```
You can also override the start-server script by added one to _custom this will overwrite the default at build time.
2019-02-13 09:41:52 +00:00
## 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.
2020-01-08 07:49:43 +00:00
Testing has been minimal but it is running the NET247 server so you can try it out at any point.
2019-02-13 09:41:52 +00:00
2020-01-08 07:49:43 +00:00
## 2do
* Thinner base OS
* Reduce duplicate data across scripts