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

Riscv64 failed to build images #1853

Open
yzewei opened this issue Jan 12, 2024 · 2 comments
Open

Riscv64 failed to build images #1853

yzewei opened this issue Jan 12, 2024 · 2 comments

Comments

@yzewei
Copy link

yzewei commented Jan 12, 2024

Riscv64 failed to build images
When I read the source code, I found that Dockerfile's golang:alpine does not support build image in the riscv architecture

Possible Solution

Do you need to provide a separate DockerFile such as Dockerfile.riscv?

@yzewei
Copy link
Author

yzewei commented Jan 12, 2024

@thomasferrandiz

@thomasferrandiz
Copy link
Contributor

The latest release was built properly for riscv64: https://hub.docker.com/layers/flannel/flannel/v0.24.0-riscv64/images/sha256-0a2382f66d6b44d52c7bc7a74a054aef69fb777690240e56627934cb6cbc02d1?context=explore

golang:alpine itself does not support riscv64 at the moment but it is only used for cross-compilation.
The final image is using alpine edge which does support riscv64: https://hub.docker.com/layers/library/alpine/20230901/images/sha256-d922baa09b54aa974583701763ae572672a56dc777b1f9b94a4c1336a0501413?context=explore

If you want to build the image locally, you will need to use docker buildx to use the new multi-arch Dockerfile.

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