lago icon indicating copy to clipboard operation
lago copied to clipboard

[FEAT]: compile images for `linux/arm64/v8`

Open haf opened this issue 2 years ago • 3 comments

Is your feature request related to a problem? Please describe. As a developer utilising your docker images on a M1/M2 Apple MacBook computer, the latest versions of Docker Desktop fails to pull the images by default:

❯ docker pull getlago/api:v0.21.0-beta
v0.21.0-beta: Pulling from getlago/api
no matching manifest for linux/arm64/v8 in the manifest list entries

Instead a command like

❯ docker pull getlago/api:v0.21.0-beta --platform linux/x86_64
v0.21.0-beta: Pulling from getlago/api
...

, has to be used.

This also affects my actual core workflow utilising k3d to spawn a local kubernetes cluster when testing the integration of Lago with the rest of the infrastructure.

Describe the solution you'd like Consider cross-compiling to linux/arm64/v8.

Describe alternatives you've considered I haven't yet figured out how to make k8s pull the with platform, but when I figure that out (like the docker platform flag above), I'll be unblocked.

Additional context No.

haf avatar Feb 10 '23 11:02 haf

Hello @haf

We do have arm64 images on a separate tag and docker-compose file. https://github.com/getlago/lago/blob/main/docker-compose.arm64.yml https://hub.docker.com/repository/docker/getlago/api-arm64v8/general https://hub.docker.com/repository/docker/getlago/front-arm64v8/general

Tell me if it works for you!

jdenquin avatar Feb 13 '23 08:02 jdenquin

Oh I see. Well, the norm would be that the platforms are all pushed to the same image, so it doesn't really solve my use-case, but it's great that it's already cross-compiled!

haf avatar Feb 14 '23 13:02 haf

We are working on having the same image for multi platforms, it should be ready for next releases!

jdenquin avatar Feb 14 '23 15:02 jdenquin

@jdenquin Any update on this? It's been ~2 months and 6 releases later and it seems the images are still platform named.

CarlAmko avatar Apr 07 '23 16:04 CarlAmko

@CarlAmko I'm still facing some issues with nokogiri on the api side with the "classic" Dockerfile and arm64 platform. Putting this on top of my todo!

jdenquin avatar Apr 07 '23 17:04 jdenquin

It's actually done and will be available for the next release!

jdenquin avatar Apr 12 '23 12:04 jdenquin