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

Docker Image fails to run on linux/arm64/v8 for jikkou:0.35.1 #482

Open
harshvardhan-j opened this issue Aug 13, 2024 · 3 comments
Open

Comments

@harshvardhan-j
Copy link

harshvardhan-j commented Aug 13, 2024

Describe the bug
A clear and concise description of what the bug is.
Running docker on Mac M1 results in the below error

docker run -it streamthoughts/jikkou:0.35.1

WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
The current machine does not support all of the following CPU features that are required by the image: [CX8, CMOV, FXSR, MMX, SSE, SSE2, SSE3, SSSE3, SSE4_1, SSE4_2, POPCNT, LZCNT, AVX, AVX2, BMI1, BMI2, FMA].
Please rebuild the executable with an appropriate setting of the -march option.%

To Reproduce
Steps to reproduce the behavior:

Expected behavior
A clear and concise description of what you expected to happen.

Docker image runs on Mac M1.

Screenshots/Configs
If applicable, add screenshots to help explain your problem.

Runtime environment

  • OS: macOS Sonoma (Apple M1 Pro)
  • Jikkou: 0.35.1
  • Docker version: Docker Engine - Community 27.1.1

Additional context
Add any other context about the problem here.

@micr01996
Copy link

Same issue here, can we have support for ARM based architecture, so that we don't need to rebuild the image?

fhussonnois added a commit that referenced this issue Aug 30, 2024
add graalvm build arg -march=compatibility

related-to: #482
fhussonnois added a commit that referenced this issue Aug 30, 2024
add graalvm build arg -march=compatibility

related-to: #482
fhussonnois added a commit that referenced this issue Aug 30, 2024
add graalvm build arg -march=compatibility

related-to: #482
fhussonnois added a commit that referenced this issue Aug 30, 2024
add graalvm build arg -march=compatibility

related-to: #482
fhussonnois added a commit that referenced this issue Aug 30, 2024
add graalvm build arg -march=compatibility

related-to: #482
fhussonnois added a commit that referenced this issue Aug 30, 2024
add graalvm build arg -march=compatibility

related-to: #482
fhussonnois added a commit that referenced this issue Aug 30, 2024
add graalvm build arg -march=compatibility

related-to: #482
@fhussonnois
Copy link
Member

Could you try using the main tag ?

  • docker pull streamthoughts/jikkou:main

Alternatively, there is a new tag main-java that does't rely on the native build which should solve the issue:

  • docker pull streamthoughts/jikkou:main-java

Thank you for your feedback

@harshvardhan-j
Copy link
Author

Thank you @fhussonnois this helps.

May I check if the native docker image will also ensure that the binary can be installed using SDKMan on these architectures?

If it's another issue I can create it with more context. Thank you.

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

3 participants