-
Notifications
You must be signed in to change notification settings - Fork 46
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
dockerBuild fails for Apple silliconMac #794
Comments
The default base image we use is not multi-platform. We should change the default to |
The workaround would be to run copy the Dockerfile from
with:
|
That's a brute-force workaround 😅 . You can simply do tasks.named("dockerfile") {
baseImage = 'eclipse-temurin:17-jre'
} |
it does not work:
|
it seems the config is:
but the generated it generates:
|
Pretty sure this worked in Micronaut 3. Perhaps the documentation is left behind @melix ? |
mmm, we do have Line 162 in 1c6fba3
but it seems that here the task type is the Docker plugin docker file, not ours 🤔, so I think it doesn't work because you still have a |
Yeah, this works:
and setting the I think we should change the base image to improve the user experience. |
There are many problems reported with Alpine in any case, so changing the base image makes sense to me. I don't have the context why this was chosen in the first place. |
Alpine became famous because it had small containers compared to that of the full distros. But perhaps nowadays the situation is different. In fact, |
+1 for having a default base image with multi-platform support. |
I add this to my build.gradle.kts
and it is working in version 4.1.0 if this base image it the recomendend for multi-platform support I vote for having it as default base image |
But the above is not working when executing optimizedDockerBuild `Step 1/8 : FROM openjdk:17-alpine
FAILURE: Build failed with an exception.
|
This is to fix Docker builds on Apple Silicon. Fixes #794
This is to fix Docker builds on Apple Silicon. Fixes #794
Generate an app with the defaults.
Environment Information
Operating system: MacOS Ventura
Architecture: Apple Silicon Mac
Micronaut Gradle Plugin 4.0.2
Example Application
No response
Version
4.0.2
The text was updated successfully, but these errors were encountered: