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

ARM support #1

Closed
rriclet opened this issue Jul 1, 2020 · 8 comments
Closed

ARM support #1

rriclet opened this issue Jul 1, 2020 · 8 comments

Comments

@rriclet
Copy link

rriclet commented Jul 1, 2020

Do you plan to build an ARM compatible image of this project ?
Using BuildX : https://developer.arm.com/common-tasks/getting-started-with-docker/multi-architecture-images

@rriclet
Copy link
Author

rriclet commented Jul 1, 2020

I created an image for armhf architectures using buildx, image here : https://hub.docker.com/repository/docker/rriclet/onionize

I forked your project, changed the architecture of docker-gen used in your Dockerfile.

@rriclet rriclet closed this as completed Jul 3, 2020
@rriclet
Copy link
Author

rriclet commented Sep 1, 2020

A cleaner solution would be for you to add a armhf tag on Docker Hub (using buildx).

For now, I created my own image :
https://hub.docker.com/repository/docker/rriclet/onionize/general

Here is the application and and build process using buildx :
https://itnext.io/nextcloud-docker-raspberry-pi-onion-service-84d4af13f7e6

@rriclet rriclet reopened this Sep 1, 2020
@moba
Copy link
Member

moba commented Sep 2, 2020

Thank you! Really appreciated. I will have a look at this soon. I am largely offline this year, sorry for the delayed response.

@moba moba closed this as completed in 2315e41 Sep 2, 2020
@moba
Copy link
Member

moba commented Sep 2, 2020

I've looked at the documentation, and I believe the best way to address this is to build docker-gen in an intermediary container. This should work regardless of architecture.

To be honest I have not tested this yet. Let's see what happens when Docker Hub picks this up. And please try it out! I don't have any armhf devices at hand.

@moba
Copy link
Member

moba commented Sep 2, 2020

Ah OK, Docker Hub cannot auto build for other architectures yet. ( docker/roadmap#109 )

Guess I have to build and push manually then...

@rriclet
Copy link
Author

rriclet commented Sep 3, 2020

Yes, I built my armhf manually with buildx. Everything is explained in this article :
https://itnext.io/nextcloud-docker-raspberry-pi-onion-service-84d4af13f7e6

Buildx documentation :
https://docs.docker.com/buildx/working-with-buildx

To push an image to DockerHub from my non-arm laptop, I used this command :
docker buildx build --platform linux/arm/v7 -t rriclet/onionize:arm32v7 --push .

@moba
Copy link
Member

moba commented Sep 3, 2020

Should already be up under the "latest" tag: https://hub.docker.com/r/torservers/onionize/tags

@moba
Copy link
Member

moba commented Sep 3, 2020

aaand they are gone again. looks like automated builds replace previous uploads, makes sense. will disable and rebuild/upload again.

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