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

Multi architecture builds and manifests #140

Closed
psyciknz opened this issue Sep 7, 2018 · 7 comments
Closed

Multi architecture builds and manifests #140

psyciknz opened this issue Sep 7, 2018 · 7 comments

Comments

@psyciknz
Copy link

psyciknz commented Sep 7, 2018

Can i use the existing Dockerfile for generating binaries for arm/arm64 and x86?

It seems to hang on the git pull on the arm servers.

I'm hoping to use this guys framework https://lobradov.github.io/Building-docker-multiarch-images/ to pull the right alpine images so that I can build for all archs.

@abiosoft
Copy link
Owner

abiosoft commented Sep 8, 2018

No you can't, because the images are based on amd64 alpine image.

@psyciknz
Copy link
Author

psyciknz commented Sep 8, 2018 via email

@abiosoft
Copy link
Owner

abiosoft commented Sep 8, 2018

Oh, I misread your message. If it is simply to generate binaries, you can generate for any platform supported by Go including arm64 as indicated here.

docker run --rm -v $(pwd):/install \
  -e PLUGINS=git,filemanager \
  -e GOARCH=arm64 \
  abiosoft/caddy:builder

@maxiride
Copy link

@abiosoft, is this webpage the equivalent of abiosoft/caddy:builder?

@abiosoft
Copy link
Owner

@maxiride Yes, that is official binaries from caddy's build servers. This image builds from source and leverages Docker. https://github.com/abiosoft/caddy-docker#license

@johnnyasantoss
Copy link

It still doesn't pull the correct image architecture. I tried on an armv7 and received an exec format error.
I believe it has something to do with the builder script which has fixed architecture on it. After cloning and removing these lines, I managed to make it work building the docker images locally.

@johnnyasantoss
Copy link

I don't know exactly how is the build process on dockerhub but I already seem a lot of images that have multi arch build there. eg. the images from https://www.linuxserver.io/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants