Guys, have you ever experimented with graalvm? If ...
# micronaut
j
Guys, have you ever experimented with graalvm? If so, could you please share
c
I played a bit with it, no production usage. I had some issues with my mac M1. See this issue with the underlying plugin used to build the Docker image. I had to build the Docker image manually instead:
Copy code
./gradlew kaptKotlin generateResourcesConfigFile dockerfileNativ
cd build/docker/native-main
docker build ...
docker push ...
Building and running on my laptop (M1) is not slow (not much code tho), but the problem is that you'll most likely deploy this on an amd64 processor thus you need to build targeting that architecture. you can do so with dockerx
Copy code
docker buildx build --platform linux/amd64 ...
But that takes AGES. This means that you'll be relegated to only being able to build and deploy from your CI/CD pipeline (which will most likely run on a Linux agent and so it's faster for compiling). This could be perfectly fine depending your use case. Besides that I didn't have any major issues code related but then again, my code wasn't doing anything crazy.