metalmatze / alertmanager-bot

[deprecated] Bot for Prometheus' Alertmanager
MIT License
660 stars 148 forks source link

Add support for ARM devices #112

Open arnaubennassar opened 4 years ago

arnaubennassar commented 4 years ago

I'd love to run this container on my SBCs (raspberries and similar devices). Could you build the containers for ARM and ARM64 architectures?

metalmatze commented 4 years ago

In the releases page, you can find binaries pre-build for various architectures. It should essentially be a curl to get the binary and then build the container for your architecture. I hope that's easy enough, as I currently have no plans to build multi-arch containers. https://github.com/metalmatze/alertmanager-bot/releases/tag/0.4.2

MatteoManzoni commented 4 years ago

First of all thank you metalmatze for the great work.

@arnaubennassar, with this 2 command you can dynamically fetch the latest release of the (linux) arm binary (the jq dependency is optional, grep+cut+trim can work just fine).

LATEST="$(curl https://api.github.com/repos/metalmatze/alertmanager-bot/releases/latest | jq -r .tag_name)" wget "https://github.com/metalmatze/alertmanager-bot/releases/download/$LATEST/alertmanager-bot-$LATEST-linux-arm" -O /alertmanager-bot

I use it in my kubernetes deployment to keep the binary always up to date.

alex-voigt commented 4 years ago

Out of the box support for ARM would be really awesome. Maybe this helps: https://docs.drone.io/pipeline/configuration/#multiple-platforms

metalmatze commented 4 years ago

Yes, that helps. Happy to accept PRs making use of this.

bohdantverdyi commented 3 years ago

I builded and pushed ARM64 0.4.2 version to my docker hub. Fully works on arm

Docker Hub Image: bohdantverdyi/alertmanager-bot-arm:0.4.2