promgen icon indicating copy to clipboard operation
promgen copied to clipboard

arm64 or armhf version

Open Bluscream opened this issue 2 years ago • 5 comments

Is there a version that runs on raspberry pi?

Bluscream avatar Sep 18 '23 23:09 Bluscream

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.

kfdm avatar Sep 18 '23 23:09 kfdm

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

Bluscream avatar Sep 19 '23 00:09 Bluscream

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.

kfdm avatar Sep 19 '23 00:09 kfdm

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

Bluscream avatar Sep 19 '23 01:09 Bluscream

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 }}

kfdm avatar Sep 19 '23 02:09 kfdm