Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Docker Xonotic Dedicated Server

#1
Hello everyone!

I want to inform you that i've created a Docker image (mainly for Unraid) for Xonotic Dedicated Server it will automaticaly download the prefered version entered in the startup commands, download all the needed files and start it.

Here are the startup commands:

Code:
docker run --name Xonotic -d \
   -p 3979:3979/tcp \
   -p 3979:3979/udp \
   --env 'GAME_PARAMS=' \
   --env 'GAME_VERSION=0.8.2' \
   --env 'UID=99' \
   --env 'GID=100' \
   --volume /mnt/user/appdata/xonotic:/serverdata/serverfiles \
   --restart=unless-stopped \
   ich777/xonotic:latest


GAME_PARAMS = Enter your extra start up commands for the server if needed otherwise leave blank.
GAME_VERSON = Enter your prefered game version (downgrade and upgrade is always possible) the docker will check for a newer version or the prefered version on startup
UID = the UID of the User (don't change unless you know what you are doing)
GID = the GID of the Group (don't change unless you know what you are doing)
volume = the path where to save the files on your server to get easy acces to
restart=unless-stopped = the container will automaticaly restart if it crashes

If anyone has any questions feel free to ask. [Image: icon_wink.gif]


Regards, ich777
Reply

#2
Very nice thanks for that. Maybe there could be an official repository for docker images?
One to run a dedicated server, maybe one to make reproducible builds of the engine etc.
Reply

#3
(08-20-2019, 04:02 PM)poVoq Wrote: Very nice thanks for that. Maybe there could be an official repository for docker images?
I will maintain the docker very well and if something is not working go to the unraid forums or post a comment in this thread.


(08-20-2019, 04:02 PM)poVoq Wrote: One to run a dedicated server, maybe one to make reproducible builds of the engine etc.
I don't understand the question fully... What did you mean with reproducible builds of the engine?
I personally don't play the game i only made the docker because someone on the unraid forums requested it. Wink
Reply

#4
(08-22-2019, 03:52 AM)ich777 Wrote:
(08-20-2019, 04:02 PM)poVoq Wrote: One to run a dedicated server, maybe one to make reproducible builds of the engine etc.
I don't understand the question fully... What did you mean with reproducible builds of the engine?
I personally don't play the game i only made the docker because someone on the unraid forums requested it. Wink

like explained here: https://sweetcode.io/using-docker-reprod...ironments/
Reply

#5
Good job. I, too, have run my servers (game server + map server) under docker (with docker-compose) for a few years. I agree there should be at least two official images, or dockerfile/docker-compose.yml to make it easier for people to host their servers or work on the code.
1. Server
2. Compilation
I sort of remember seeing something done by -z-.
I don't have enough cycles these days to generalize the files, but would love to see this available for people.
Reply

#6
How do you install Docker without installing proprietary software?
Reply

#7
(09-21-2019, 10:02 PM)Lyberta Wrote: How do you install Docker without installing proprietary software?

Could you explain your issue a bit better? Docker can be installed easily on any GNU/Linux system, no proprietary software involved AFAIK.
Reply

#8
(09-22-2019, 02:25 PM)poVoq Wrote: Could you explain your issue a bit better? Docker can be installed easily on any GNU/Linux system, no proprietary software involved AFAIK.

https://en.wikipedia.org/wiki/Docker_(software)

Quote:License
Binaries: Freemium software as a service
Source code: Apache License 2.0
Reply

#9
That is only referring to the Enterprise Edition.
When you install it from your regular packet manager you get the Community Edition, which really has all the features needed and is fully FOSS.
Putting it like that on the Wikipedia is pretty much spreading  FUD Sad
Reply

#10
Hmm, I wanted to check manually so after several pages of "Buy now/start free trial" I end up here:
https://hub.docker.com/search/?type=edit...=community

And this is blank page even if I enable everything that my tools don't qualify as spyware/ads. So, not even a sane way to download their thing.

EDIT: Ok, via search engine I managed to download DEB and it seems to be Apache 2.0, hmm.
Reply

#11
Yep, Docker is FOSS. Several of its components in the larger "Docker ecosystem" are not, however. I believe the tendency of that ecosystem to use more and more of those proprietary things was one of the driving forces behind the creation of rkt, which is most certainly Apache through-and-through.
asyyy^ | are you releated to chuck norris?
Reply

#12
Im using the following (slightly tweaked) docker run command:
docker run --name xonotic -d \
   -p 26000:26000/tcp \
   -p 26000:26000/udp \
   --env 'GAME_PARAMS=' \
   --env 'GAME_VERSION=0.8.2' \
   --env 'UID=99' \
   --env 'GID=100' \
   --env 'BASIC_URL=https://dl.xonotic.org/' \
   --volume /opt/docker-config/docker-xonotic:/serverdata/serverfiles \
   --restart=unless-stopped \
   ich777/xonotic:latest
I get the following errors as reflected in my docker logs for this container:
---Setting umask to 000---
---Xonotic not found!---
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0Warning: Failed to create the file xonotic-0.8.2.zip: Permission denied
  0  945M    0 16384    0     0  20608      0 13:21:30 --:--:-- 13:21:30 20582
curl: (23) Failed writing body (0 != 16384)
---You probably entered a wrong version number the server zip is empty---
rm: cannot remove 'xonotic-0.8.2.zip': No such file or directory
Reply

#13
(12-10-2019, 10:00 PM)imome9a Wrote: Im using the following (slightly tweaked) docker run command:
docker run --name xonotic -d \
   -p 26000:26000/tcp \
   -p 26000:26000/udp \
   --env 'GAME_PARAMS=' \
   --env 'GAME_VERSION=0.8.2' \
   --env 'UID=99' \
   --env 'GID=100' \
   --env 'BASIC_URL=https://dl.xonotic.org/' \
   --volume /opt/docker-config/docker-xonotic:/serverdata/serverfiles \
   --restart=unless-stopped \
   ich777/xonotic:latest
I get the following errors as reflected in my docker logs for this container:
---Setting umask to 000---
---Xonotic not found!---
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0Warning: Failed to create the file xonotic-0.8.2.zip: Permission denied
  0  945M    0 16384    0     0  20608      0 13:21:30 --:--:-- 13:21:30 20582
curl: (23) Failed writing body (0 != 16384)
---You probably entered a wrong version number the server zip is empty---
rm: cannot remove 'xonotic-0.8.2.zip': No such file or directory
Just saw this -- make sure your directory (/opt/docker-config/docker-xonotic) owner uid:gid is 99:100. It simply says curl cannot write into that directory.
Reply

#14
Thank you for this Smile
Can you provide a docker-compose v2 schema for easy stack deployment under portainer?
FAF - COPENHAGEN - DENMARK - LINUX
Reply

#15
Hi. I've successfully installed this in docker, and it works. But how can I change server settings? I want to change server name, disable power-ups, and set 10-minutes time limit. I have tried to change those params in xonotic/server/server.cfg and restart the container, but that is not working. Should I use GAME_PARAMS instead?

UPD: I've found the solution. You should edit xonotic/data/server.cfg and not xonotic/server/server.cfg.
Reply

#16
(04-02-2020, 02:59 PM)FAF Wrote: Thank you for this Smile
Can you provide a docker-compose v2 schema for easy stack deployment under portainer?

I lost my v2 schema, but here's my 3.7.
Reply



Possibly Related Threads...
Thread Author Replies Views Last Post
  Server does not start saddesad 2 59 Yesterday, 04:39 AM
Last Post: saddesad
  [NEED HELP] Server failed to open socket on address... Hexactinal 2 63 11-21-2020, 04:28 PM
Last Post: Hexactinal
  Server Hosting Issue Saevus 3 681 11-11-2020, 02:53 PM
Last Post: :[:{b_e*r^f}:]:
  BuddyFriendGuy Fun Server BuddyFriendGuy 22 8,108 10-08-2020, 11:14 AM
Last Post: BuddyFriendGuy
Rainbow Kotangєns' independent server Kotangens 2 467 10-07-2020, 05:08 AM
Last Post: L497
  RaspberryPi4 Server ablyveiled 2 711 08-19-2020, 10:36 PM
Last Post: ballerburg9005
Question [NEED HELP] Server uses 40% CPU whereas Nexuiz server runs with max 10% e-pig 6 2,147 08-19-2020, 10:17 PM
Last Post: ballerburg9005
  [SOLVED] I can't create my server. Kotangens 11 1,161 07-22-2020, 04:42 AM
Last Post: Kotangens
Information [SOLVED] Server stops when I close command prompt on my PC Jewel 2 553 06-01-2020, 07:11 AM
Last Post: Jewel
  [NEED HELP] Server dont appear in server browser abslimit 0 589 03-15-2020, 04:13 AM
Last Post: abslimit

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum software by © MyBB original theme © iAndrew 2016, remixed by -z-