Júlio Santos
07/18/2022, 9:34 PMCésar
07/25/2022, 9:52 AM./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
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.