QW-Group / mvdsv

MVDSV: a QuakeWorld server
GNU General Public License v2.0
58 stars 56 forks source link

Docker #137

Closed lockheed closed 3 weeks ago

lockheed commented 1 month ago

Does this have docker container? Is it possible to run this in docker?

ciscon commented 1 month ago

someone wrote some docker stuff for it at some point and i think i even corrected some of it in a fork that's probably long gone (i think it was this https://github.com/niclaslindstedt/nquakesv-docker) it's certainly possible to run it in docker though most servers are being run on vms in the cloud in which case it's just as simple to run the nquakesv installer script outside of a container.

lockheed commented 1 month ago

Thanks for responding. I am already using this fork for docker: https://github.com/frehall/qwserver-docker , which seems to be the latest (it even includes docker-compose, on which I am basing mine) and it is working fine, with one strange exception: if I change server port to anything else than 27500 (e.g. 27501), the server no longer appears on the list of master servers, even tough it regularly sends them a heartbeat.

I can't figure out why, because the server is live, has all the proper ports configured and I can connect to it manually.

ciscon commented 1 month ago

i'm sure it's a bug in the docker image it's referencing for mvdsv, you might want to create your own using their dockerfile and reference that instead so you can fix it, i'm sure it's some tiny bug.

lockheed commented 1 month ago

I tried building it with supplied Dockerfile but I can't get it to build: https://pastebin.com/raw/GmrQ88JG

Even if I replace ubuntu:18.04 with debian:stable-slim, I get the same issue.

EDIT: That was an old Dockerfile. I used a new one, and it gets much further, but still stops:

Setting up bind9-dnsutils (1:9.18.24-1) ...

Setting up dnsutils (1:9.18.24-1) ...

Processing triggers for libc-bin (2.36-9+deb12u7) ...

Processing triggers for ca-certificates (20230311) ...

Updating certificates in /etc/ssl/certs...

0 added, 0 removed; done.

Running hooks in /etc/ca-certificates/update.d...

done.

 ---> Removed intermediate container 0cdade254aaf

 ---> cb842292dde1

Step 17/26 : COPY files .

COPY failed: file not found in build context or excluded by .dockerignore: stat files: file does not exist
tcsabina commented 1 month ago

Hi @lockheed, You will get more support with this issue in the QW discord. Check the 'Acknowledgments' part of the main page on the repo...

lockheed commented 1 month ago

It turns out the servers do appear in masterlist, but it takes some of them about 12 hours to do so. Strange, considering they are all on the same server and run with same commands and others appear within minutes.