Skip to content
New issue

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

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

Already on GitHub? # to your account

arm64 or armhf version #438

Open
Bluscream opened this issue Sep 18, 2023 · 5 comments
Open

arm64 or armhf version #438

Bluscream opened this issue Sep 18, 2023 · 5 comments

Comments

@Bluscream
Copy link

Is there a version that runs on raspberry pi?

@kfdm
Copy link
Collaborator

kfdm commented Sep 18, 2023

It's Python and we are not doing anything too complicated so I would imagine it should run on raspberry pi, though I'm not sure we have the bandwith to test it ourselves.

@Bluscream
Copy link
Author

Bluscream commented Sep 19, 2023

the problem is that it's compiled for amd64

docker run --rm -it -v ~/.config/promgen:/etc/promgen/ line/promgen createsuperuser
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
exec /docker-entrypoint.sh: exec format error
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
exec /docker-entrypoint.sh: exec format error
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
exec /docker-entrypoint.sh: exec format error
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
exec /docker-entrypoint.sh: exec format error

@kfdm
Copy link
Collaborator

kfdm commented Sep 19, 2023

In that case, you should try building your own docker container.
Clone the repo and there is a make build target for the docker container.

@Bluscream
Copy link
Author

i will try that, thank you. can i add the built container to your dockerhub?

@kfdm
Copy link
Collaborator

kfdm commented Sep 19, 2023

Yeah, it's possible an arm version could be built from
https://github.com/line/promgen/blob/master/.github/workflows/docker.yml

I've only done a very quick, basic search but this suggests it might be easy to do
https://dev.to/cloudx/multi-arch-docker-images-the-easy-way-with-github-actions-4k54

      - name: Build and push
        uses: docker/build-push-action@v2
        with:
          context: .
          platforms: linux/amd64,linux/arm/v7
          push: ${{ github.event_name != 'pull_request' }}
          tags: ${{ steps.<meta_id>.outputs.tags }}
          labels: ${{ steps.<meta_id>.outputs.labels }}

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants