Replies: 1 comment 2 replies
-
yes, building a native image in CI is common use case . |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey all!
I'm working on migrating a pretty small project from Micronaut 2 to 4.5.1. It honestly doesn't contain much just your standard CRUD application with 1 controller with 4 endpoints and some files setup to connect to GCP Cloud SQL.
Once migrated to 4.5.1, I'm able to run all the commands to run this application locally using the gradle plugin like
dockerBuildNative
,dockerBuild
,nativeCompile
,nativeRun
,run
, etc. Compilation times for native-image takes like 5-8 mins with Apple silicon. My issue is when I build this using Bamboo, Bitbucket Pipelines, or GCP Build it kind of hangs and I would cancel my run after 60 mins or an OOM error message shows up. The setup for these serverless platforms are 8 GB and 2 CPU threads if that mattersIs executing the
native-image
command ideal in a serverless CI setting? Or is there another set of best practices for this? Unfortunately, I don't have another person at work to bounce ideas with Micronaut as all the original devs have left over the years haha. I can also show my build.gradle file but it's quite literally a basic CRUD application that we only run in Cloud Run.Beta Was this translation helpful? Give feedback.
All reactions