Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide multiarch Docker image #38

Open
jhbruhn opened this issue Jan 2, 2021 · 4 comments
Open

Provide multiarch Docker image #38

jhbruhn opened this issue Jan 2, 2021 · 4 comments
Labels
docker help wanted Extra attention is needed

Comments

@jhbruhn
Copy link

jhbruhn commented Jan 2, 2021

I am running flexo on a Raspberry Pi in a Docker container and love it so far. My only problem is the lack of a ARM image for Docker, so I currently build it myself locally. Luckily, no changes on the Dockerfile or flexo itself were necessary! But it would be nice if an official multi-arch image was provided so watchtower can automatically update flexo on my machine.

@nroi
Copy link
Owner

nroi commented Jan 9, 2021

I've managed to build Flexo for ARM64 via buildx with GitHub's CI Pipeline, but for older versions (armv6, armv7), it seems there is a bug in buildx: docker/buildx#395

So we'll have to wait until this is solved or someone comes up with a workaround. Until then, the CI is going to build for amd64 and arm64.

I'm still in the process of improving the CI for building docker images and will give you an update soon.

@nroi nroi added the docker label Jan 9, 2021
@jhbruhn
Copy link
Author

jhbruhn commented Jan 10, 2021

docker/buildx#395 (comment) mentions a workaround by doing the cargo fetch step in the arch of the current build step an then switching to the target architecture for building and running the application. Building on ARM should also still work using the workaround as the architecture used for fetching depends othe architecture the build is running on.

@nroi
Copy link
Owner

nroi commented Mar 28, 2021

I have had some success with the workaround, but still no luck with armv6. Also, I wasn't able to push it to Docker Hub, I was only able to use github's GHCR.

So, the current status is:

  • All Flexo images on Docker Hub are x86 only.
  • For pulling ARM images, use GHCR: docker pull ghcr.io/docker-flexo/docker-flexo:master
  • armv6 is not supported on either repositories, you need to build the image yourself.

@nroi
Copy link
Owner

nroi commented Oct 9, 2021

For some reason, the CI job I've created at https://github.com/docker-flexo/docker-flexo often times out when building the ARM image. For now, I've removed the job that pushes the image to GHCR, so that means no ARM docker images are provided anymore.

I'm prioritizing other issues before this one, so please don't expect this to be solved anytime soon. If anyone wants to help, you can of course just fork this repo or this repo and try your luck. But for now, ARM users just have to build the Docker image themselves or use the AUR package.

@nroi nroi added the help wanted Extra attention is needed label Oct 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docker help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants