This is a docker container for SRB2Kart for ease of setting up a server. It automatically downloads and builds the source code from the public SRB2Kart releases.
The tags for this container will be in varying granularities. As a basis you have the following tags:
latest: Always the latest major and minor version.<major_version>: E.g.alicianibbles/srb2kart:1. This is the latest docker image in that major version. This might update minor versions on the go as well as dependencies being updated.<major_version>.<minor_version>: E.g.alicianibbles/srb2kart:1.6. This is the latest docker image with the respective major and minor version. This might still update dependencies on the fly while keeping a constant major and minor version.<major_version>.<minor_version>.<build_number>: This one is a specific major and minor version pinned to a specific build. This one won't have any parts updated and will be a completely stable image.
PASSWORD: Sets the password to log in as an administrator on the server within the game.BANDWIDTH: Sets the bandwidth in bytes per second. Default is 30000 bytes per second, minimum allowed value is 1000 bytes per second.EXTRATIC: Specifies up to how many extra previous tics to send to the client per server tic.IPV6: Listens to incoming IPv6 connections. Warning, this is untested.PACKETSIZE: Changes the size of UDP packets sent.USEUPNP: Turns on Universal Plug and Play support. This feature is untested.WARP: Sets what map to warp to at the beginning of the game.
For more information see the official documentation on Command-line parameters since the environment variables for the docker container mirror those. You can also pass them as command-line arguments, but environment variables are recommended. Those might not necessarily work since the wiki is focused on srb2, not srb2kart.
You might want to persist some of the data the SRB2Kart server uses on your host system through volumes.
This folder is mapped as a volume at /addons and should be used to store addons for the game, which will automatically be loaded into the server. The files in here must not contain any spaces in their filenames.
This folder is mapped as a volume at /data and holds general game data, and configuration files. Some notable files are:
.srb2kart/kartserv.cfg: A console script file that automatically gets loaded when starting the dedicated server. For example setting general game configuration, console variables, or a nice colored server name.
To run the server normally with docker, just execute
docker run -it --name srb2kart -v /path/on/host/addons:/addons -v /path/on/host/data:/data -e ROOM_ID=33 -p 5029:5029/udp alicianibbles/srb2kart:latestTBD