treyyoder / quakejs-docker

Dockerized quakejs server
204 stars 61 forks source link

Pi support #8

Closed ChrisScottThomas closed 2 years ago

ChrisScottThomas commented 4 years ago

Hello! First off, thanks for this, I'm having great fun smashing my kids into the ground!

Secondly, a tip for anyone who's looking, swapping the image base to arm32v7/ubuntu:latest allows you to host this on a Pi. This has made it a lot better for me at home, as I can leave it up all the time rather than spawning it on a macbook.

Cheers!

Ethergy commented 3 years ago

@ChrisScottThomas Would you mind explaining how to do this?

g0rge0us commented 2 years ago

I guess the only option is to change the docker image, because this one "treyyoder/quakejs" does not support other tags than "latest" and is NOT compatible with ARM (neither 32 nor 64) architectures. I have searched dockerhub for quakejs images which support ARM architectures: https://hub.docker.com/search?q=quakejs&architecture=arm%2Carm64 and have tried successfully with the first option/image from the 2 results.

So, the following stack/compose file is working for me on RPI4 (4GB RAM).

version: '2'
services:
    quakejs:
        container_name: quakejs
        environment:
            - HTTP_PORT=8282
            - SERVER=10.0.0.4 #your internal IP
        ports:
            - '8282:80'
            - '27960:27960'
        image: 'chrisscottthomas/quakejs:latest'

Good luck!

treyyoder commented 2 years ago

@g0rge0us If you want to make a PR for your work for Pi support, I'd be glad to review it.

Closing