kcat icon indicating copy to clipboard operation
kcat copied to clipboard

Multi-arch Docker build

Open rnsc opened this issue 3 years ago • 7 comments

Hello,

Would it be possible to have a multi arch Docker build so that we can pull from the Docker Hub even on ARM64 platform?

Thanks,

Kind regards,

rnsc avatar May 29 '21 16:05 rnsc

We would like to see this as well for all four Red Hat architectures: linux/amd64,linux/arm64,linux/ppc64le,linux/s390x. This can be accomplished with either docker buildx or recent versions of podman.

yselkowitz avatar Apr 27 '22 01:04 yselkowitz

PRs welcome :)

edenhill avatar Apr 27 '22 14:04 edenhill

It's a matter of how the container build is controlled, but I don't see any automation in the repo. How are you driving the container builds?

yselkowitz avatar Apr 27 '22 14:04 yselkowitz

I manually build the alpine docker image and upload it to docker hub.

edenhill avatar May 03 '22 07:05 edenhill

In that case, instead of your usual docker build and docker push commands, you can use docker buildx, e.g.:

docker buildx build --platform linux/amd64,linux/arm64/v8,linux/ppc64le,linux/s390x --push -t docker.io/edenhill/kcat:1.8.0 .

(Note that if you're using docker buildx for the first time, some initial setup may be required; see the documentation for details.)

yselkowitz avatar May 03 '22 16:05 yselkowitz

Maybe we could add a GitHub workflow then?

rnsc avatar May 03 '22 16:05 rnsc

Sounds good 👍

edenhill avatar May 03 '22 16:05 edenhill