gorcon / rcon-cli

RCON client for executing queries on game server.
MIT License
495 stars 45 forks source link

arm64 build for docker? #44

Open TotalLag opened 9 months ago

TotalLag commented 9 months ago

is it possible to get a docker build for arm or linux/arm64/v8 ?

Kush-Saxena commented 6 months ago

@TotalLag

Assuming you're on a arm based machine. If you have golang, just clone repo and build it (using something like this GOOS=linux GOARCH=arm go build). However if you don't have that you can use the following steps:

  1. Make a folder and open terminal there.
  2. Execute this : docker run --rm -it --platform=linux/arm64/v8 -v .:/go/bin golang sh -c "git clone https://github.com/go rcon/rcon-cli && cd rcon-cli/cmd/gorcon/ && GOOS=linux GOARCH=arm go build -o /go/bin/gorcon"
  3. Find the binary in same folder where you executed the command.