Eoin-ONeill-Yokai / srb2kart-server-docker

🏁 Containerized version of SRB2Kart, a kart racing mod based on Sonic Robo Blast 2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sonic Robo Blast 2 Kart Server

Docker Cloud Build Status Docker Image Version Docker Image Size

Containerized version of SRB2Kart.

SRB2Kart

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.

Usage

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 eoin-oneill-yokai/srb2kart-server:latest

Data Volume

The ~/.srb2kart directory is symlinked to /data in the container. You can bind-mount a SRB2Kart directory (with configuration files, mods, etc.) on the host machine to the /data directory inside the container. For example:

$ tree srb2kart-myserver/
srb2kart-myserver
β”œβ”€β”€ addons
β”‚   β”œβ”€β”€ kl_xxx.pk3
β”‚   β”œβ”€β”€ kl_xxx.wad
β”‚   └── kr_xxx.pk3
└── kartserv.cfg

1 directory, 4 files

Additionally, all files found in srb2kart-myserver/servermods will automatically be loaded into the game exectubale and enabled on the server.

This directory must be accessible to the user account that is used to run SRB2Kart inside the container. If your host machine is run under *nix OS, SRB2Kart uses the non-root account 10001:10001 (group:id, respectively).

docker run --rm -it --name srb2kart \
    -v <path to data directory>:/data \
    -p <port on host>:5029/udp \
    rwanyoike/srb2kart-server:<version> -dedicated -file \
    addons/kl_xxx.pk3 \
    addons/kl_xxx.wad \
    addons/kr_xxx.pk3

Manual Build

git clone https://github.com/eoin-oneill-yokai/srb2kart-server-docker
cd srb2kart-server-docker/
docker build --build-arg "SRB2KART_VERSION=<version>" \
    -t srb2kart-server:<version> .

The build will clone the STJr/Kart-Public repository and build the SRB2Kart executable, as well as download the data files (/usr/share/games/SRB2Kart) for SRB2Kart.

License

This project is licensed under the GPLv2 License.

About

🏁 Containerized version of SRB2Kart, a kart racing mod based on Sonic Robo Blast 2

License:GNU General Public License v2.0


Languages

Language:Dockerfile 93.9%Language:Shell 6.1%