Docker container for Sonic Roboblast 2 Kart dedicated server
10K+
Containerized version of SRB2Kart. This is a fork of rwanyoikes Dockerfile
Containerized version of SRB2Kart, a kart racing mod based on the 3D Sonic the Hedgehog fangame Sonic Robo Blast 2, based on a modified version of Doom Legacy. You can use SRB2Kart to run a SRB2Kart dedicated netgame server given the proper config.
This will pull an image with SRB2Kart and start a dedicated netgame server on port 5029/udp:
docker run -it --name srb2kart -p 5029:5029/udp ellite/srb2kart-server:latest
In order to load addons, bind the /addons volume to a host directory and copy them there.
docker run -it --name srb2kart -p 5029:5029/udp -v /path/on/host/addons:/addons ellite/srb2kart-server:latest
Do your addons save configs/data in the /luafiles folder? Bind the /luafiles volume to a host directory.
docker run -it --name srb2kart -p 5029:5029/udp -v /path/on/host/luafiles:/luafiles ellite/srb2kart-server:latest
In order to configure server variables, bind the /config volume to a host directory, create kartserv.cfg, and edit it.
docker run -it --name srb2kart -p 5029:5029/udp -v /path/on/host/config:/config ellite/srb2kart-server:latest
sudo nano /path/on/host/config/kartserv.cfg
In order to persist data through server shutdowns, bind the /data volume to a host directory.
docker run -it --name srb2kart -p 5029:5029/udp -v /path/on/host/data:/data ellite/srb2kart-server:latest
Here's an example of how to run the container as a service on Linux with the help of systemd.
# /etc/systemd/system/docker.srb2kart.service
[Unit]
Description=SRB2Kart Server
Requires=docker.service
After=docker.service
# Ref: https://www.freedesktop.org/software/systemd/man/systemd.unit.html#StartLimitIntervalSec=interval
StartLimitIntervalSec=60s
StartLimitBurst=2
[Service]
TimeoutStartSec=0
Restart=on-failure
RestartSec=5s
ExecStartPre=/usr/bin/docker stop %n
ExecStartPre=/usr/bin/docker rm %n
ExecStartPre=/usr/bin/docker pull ellite/srb2kart-server:<version>
ExecStart=/usr/bin/docker run --rm --name %n \
-v <path to data directory>:/data \
-v <path to config directory>:/config \
-v <path to addons directory>:/addons \
-v <path to luafiles directory>:/luafiles \
-p <port on host>:5029/udp \
ellite/srb2kart-server:<version>
[Install]
WantedBy=multi-user.target
systemctl enable docker.srb2kart
git clone https://github.com/ellite/srb2kart-server-docker
cd srb2kart-server-docker/
# Ref for version numbers: https://github.com/STJr/Kart-Public/releases
docker build --build-arg "SRB2KART_VERSION=<version>" \
-t srb2kart-server:<version> .
The build will download the Source Code from a mirror (https://srb2kmods.ellite.dev/) and build the SRB2Kart executable, as well as download the data files (/usr/share/games/SRB2Kart) for SRB2Kart.
This project is licensed under the GPLv2 License.
Content type
Image
Digest
sha256:68afd7ef8…
Size
232.3 MB
Last updated
almost 4 years ago
docker pull ellite/srb2kart-server