-
I would like to try using Kamal for a Spring Boot Application. With Spring Boot you don't need to write your own Dockerfile and instead use the Gradle/Maven Plugin to build a Image: https://docs.spring.io/spring-boot/docs/current/gradle-plugin/reference/htmlsingle/#build-image This uses Paketo Buildpack to create a optimized Docker Image. Can I run ./gradlew bootBuildImage to build the image with Kamal somehow? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hi @tschuehly, I'm using the Paketo Buildpacks for a Rails application as well. In my use case, I use a CI pipeline build the image and use kamal for making the deployment, using the "-P" option to disable local builds. I'm pretty sure you can run Paketo Buildpacks locally for building your image. |
Beta Was this translation helpful? Give feedback.
-
works as a deploy alias with this gradle config:
See #497 also |
Beta Was this translation helpful? Give feedback.
-
@tschuehly Feel free to add any feedback you have to this buildpack PR for Kamal. |
Beta Was this translation helpful? Give feedback.
@tschuehly
alias ,d="./gradlew bootBuildImage && VERSION=latest kamal deploy -P"
works as a deploy alias with this gradle config:
See #497 also