holysoles / ginrcon

A simple HTTP REST API to proxy RCON commands to a game server
MIT License
3 stars 0 forks source link

Support a ARM image #16

Closed holysoles closed 1 month ago

holysoles commented 5 months ago

This image isnt able to be run on ARM64, such as Raspberry Pis.

Best path is probably supporting an additional docker image that is built for arm 64

https://docs.docker.com/build/building/multi-platform/#cross-compilation

Bluscream commented 1 month ago

I just wanted to ask this before i saw this issue, i'm getting exec format errors

holysoles commented 1 month ago

@Bluscream given there is actually interest from someone, I can take a look at this today

holysoles commented 1 month ago

@Bluscream this should be all set now, tested this out on my Pi 4 running Raspberry Pi 11. Feel free to open another issue if you run into any problems!

Bluscream commented 1 month ago
version: '3.9'
services:
  ginrcon:
    image: ghcr.io/holysoles/ginrcon:latest
    platform: linux/arm64
    restart: unless-stopped
    ports:
      - "8085:8080/tcp"
    # environment:
      # PORT: 8080
      # TRUSTED_PROXIES: "192.168.1.2"
      # RCON_SERVER: localhost
      # RCON_PORT: 7779
      # RCON_ADMIN_PASSWORD: 1234
holysoles commented 1 month ago

@Bluscream can you check what bit architecture your rpi is running with this command?

getconf LONG_BIT

My raspberry pi is 32bit and I can reproduce your error when I use your compose file, but not when i dont specify the platform key like below. You shouldnt need to specify that yourself, Docker should normally resolve it automatically.

version: '3.9'
services:
  ginrcon:
    image: ghcr.io/holysoles/ginrcon:latest
    restart: unless-stopped
    ports:
      - "8085:8080/tcp"
    # environment:
      # PORT: 8080
      # TRUSTED_PROXIES: "192.168.1.2"
      # RCON_SERVER: localhost
      # RCON_PORT: 7779
      # RCON_ADMIN_PASSWORD: 1234
Bluscream commented 1 month ago

Sorry, i shouldve really clarified that with my initial post; the compose i posted worked for me. portainer/docker were not able to determine the platform automatically but after adding the line to my compose ginrcon started successfully

holysoles commented 1 month ago

Sorry, i shouldve really clarified that with my initial post; the compose i posted worked for me. portainer/docker were not able to determine the platform automatically but after adding the line to my compose ginrcon started successfully

@Bluscream thanks for the clarification. When you run the compose without the platform specified, can you see the sha256 hash of the image it pulls (can see on the services page entry)? Or are you saying Docker/Portainer throws an error? If it does, could you share it?

holysoles commented 1 month ago

@Bluscream given i cant reproduce this and its working for you, i'm gonna close this out but feel free to open a new issue if you have any issues