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

How to build the containers on arm32v7 or arm64? #8

Closed
bernhardkaindl opened this issue Apr 16, 2022 · 1 comment
Closed

How to build the containers on arm32v7 or arm64? #8

bernhardkaindl opened this issue Apr 16, 2022 · 1 comment

Comments

@bernhardkaindl
Copy link

bernhardkaindl commented Apr 16, 2022

When I try to compose the containers on an armhf machine, I get these errors (as they are amd64 builds):

postgrest_1  | exec /bin/bash: exec format error
ui_1         | exec /bin/bash: exec format error
remote_1     | exec /bin/bash: exec format error

Can I build armhf or arm64 images of containers on armhf or arm64?

It looks like this would be a start:

for container in postgrest ui remote; do
  c=open-balena-$container
  git clone git@github.com/dcaputo-harmoni/$c.git
  docker build -t $c $c/
done

Then collect the new image ids and use them of the docker-compose suing sed 's|dcaputo-harmoni/||' compolse/services.yml

@bernhardkaindl bernhardkaindl changed the title Hot to build the containers for arm64? How to build the containers on arm64? Apr 16, 2022
@bernhardkaindl bernhardkaindl changed the title How to build the containers on arm64? How to build the containers on arm32v7 or arm64? Apr 16, 2022
@dcaputo-harmoni
Copy link
Owner

@bernhardkaindl thank you for the PR’s! With your commit to the open-balena-postgrest I am assuming the containers will now build on arm32v7/arm64? If so I would be happy to post arm builds as well. We should probably have an option in the quickstart script to specify the target architecture as well? Curious how the base open-balena packages handle different architectures as we could always mirror that, I’ve always run them on amd64.

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

2 participants