polaris icon indicating copy to clipboard operation
polaris copied to clipboard

Multi-arch docker support

Open NoUseFreak opened this issue 4 years ago • 10 comments

Is your feature request related to a problem? Please describe. I am running an arm64 based cluster and would like to run polaris. Any chance you could push multi-arch images?

NoUseFreak avatar May 08 '20 23:05 NoUseFreak

Thanks for the feedback! We'll look into this for the upcoming 1.0 release

rbren avatar May 13 '20 12:05 rbren

ARM now supported!

rbren avatar Jun 03 '20 21:06 rbren

Actually I misread this - we're still only pushing AMD images, but we have an ARM binary

rbren avatar Jun 03 '20 21:06 rbren

I've never built multi-arch images, but do you think the following would work?

  • build a second ARM binary in the Dockerfile
  • copy that ARM binary to our standard alpine distro
  • add a flag to the helm chart like --set architecture=arm, which would use the ARM binary instead of the AMD binary

rbren avatar Jun 03 '20 21:06 rbren

Hi,

I've been building locally using the following to support multiarch. I do build the go apps in the container, so they will build using the correct arch. You could lookup the arch to fetch the correct artifact if needed.

multiarch:
	docker buildx use $(project)-builder \
		|| (docker buildx create --name $(project)-builder && docker buildx use $(project)-builder)
	docker buildx inspect --bootstrap
	docker buildx build -t $(docker_image):$(version) \
	 	--platform linux/amd64,linux/arm64,linux/arm --push .
	docker buildx rm $(project)-builder
	@echo "Published version $(version)"

In this case, the image will (with a single tag) support multiple archs and it does not require helm changes and will work for mixed clusters.

NoUseFreak avatar Jun 04 '20 06:06 NoUseFreak

@NoUseFreak / @rbren - thanks for looking into getting ARM images (or better multiarch images). I found this issue when i was trying to get Polaris on my raspberry pi 4 cluster. I just wanted to drop by and say I have built ARM image that work with RPI4 in case anyone else finds this issue and doesn't want to go through the trouble of building them.

https://hub.docker.com/repository/docker/warpigg/polaris-arm

Once the multi-arch builds are available this is obviously moot :)

brian-provenzano avatar Jun 07 '20 02:06 brian-provenzano

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 13 '21 02:04 stale[bot]

+1 . I would love to use the official release for my raspberry pi cluster.

julweber avatar Sep 28 '21 08:09 julweber

@lucasreed recently implemented this in another one of our projects. I'll get this on the list to update too.

sudermanjr avatar Oct 27 '21 16:10 sudermanjr

+1 - would love this too

ankushg avatar Jul 26 '22 22:07 ankushg

Happy to say this is now supported!

rbren avatar Apr 06 '23 16:04 rbren