Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arm64 container availability #1

Closed
t4nki opened this issue May 29, 2023 · 6 comments
Closed

arm64 container availability #1

t4nki opened this issue May 29, 2023 · 6 comments

Comments

@t4nki
Copy link

t4nki commented May 29, 2023

Hi,

This project would look great in my homelab, unfortunately this is only available for amd64 architecture

Do you have any plans releasing this container on arm64 ?

Ntfy and Grafana both run great on Raspberry Pi ans your project would fit nicely between the two.

I have absolutely no experience regarding Go and coding in general, so I would be of absolutely no help, except for testing

Keep the community posted about this

Regards

@academo
Copy link
Owner

academo commented Jul 24, 2023

@t4nki you can easily build this for arm64 since go is cross compiling.

Keep the community posted about this

where would that be?

@academo
Copy link
Owner

academo commented Jul 24, 2023

Nevertheless here's a release with all the architecture: https://github.com/academo/grafana-alerting-ntfy-webhook-integration/releases/tag/0.4.1

@sjafferali
Copy link

I tried using this, but noticed the container is still amd64 only https://hub.docker.com/r/academo/grafana-ntfy/tags . Can a multi arch container also be created for this? I haven't used go-release-action, but the docker docker/build-push-action supports this.

@academo
Copy link
Owner

academo commented Aug 4, 2023

@sjafferali I release the docker container manually. Considering is a container, can you run it using amd64?

@sjafferali
Copy link

@sjafferali I release the docker container manually. Considering is a container, can you run it using amd64?

No, running the amd64 container on an arm64 machine doesn't work. The container exits out immediately with an exec format error.

@academo
Copy link
Owner

academo commented Aug 7, 2023

@sjafferali I see. What I can advice for now is simply to download the binary for the architecture and use an alpine image to run it directly. e.g.:

version: "3"
services:
  grafana-ntfy:
    #image: arm64v8/alpine
    image: alpine
    # make sure to put the correct architecture binary 
    command: sh -c "/app/grafana-ntfy -ntfy-url 'https://ntfy.sh/mytopic'"
    volumes:
      - ./:/app
    working_dir: /app
    expose:
      - 8080 #only accesible to other containers

@academo academo closed this as completed Aug 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants