heritrix3 icon indicating copy to clipboard operation
heritrix3 copied to clipboard

Apple Silicon docker images

Open ziodave opened this issue 2 years ago • 1 comments

It looks the docker archive at https://hub.docker.com/r/iipc/heritrix is missing the Apple Silicon images:

$ docker run --init --rm -d -p 8443:8443 -e "USERNAME=admin" -e "PASSWORD=admin" -v $(pwd)/jobs:/opt/heritrix/jobs iipc/heritrix                                                              ✘ 125
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested

I'll see if I can make a contribution.

ziodave avatar Mar 13 '22 10:03 ziodave

This would be the updated GH action file: https://github.com/ziodave/heritrix3/blob/master/.github/workflows/docker-image.yml

Example multi-arch image is here: https://github.com/ziodave/heritrix3/pkgs/container/heritrix3

The registry, username and password would need to be updated accordingly. Right now they're using respectively env.REGISTRY, github.actor and secrets.GITHUB_TOKEN.

Let me know if you want me to create a PR.

I also suggest to enhance it further so that it can automatically create production images when a new tag is created, for reference see https://docs.github.com/en/packages/managing-github-packages-using-github-actions-workflows/publishing-and-installing-a-package-with-github-actions#upgrading-a-workflow-that-accesses-ghcrio and https://github.com/docker/metadata-action).

I can contribute that too if you want.

ziodave avatar Mar 13 '22 11:03 ziodave