We use skaffold, helm and jib to deploy our Spring Boot application. When using the auto-sync functionality the whole image is build and deployed. In our case it would be enough to sync the files and jars as that triggers the SB devtools to automatically reload the application.
I got this working by runing skaffold dev --auto-build=false --auto-deploy=false --auto-sync=true in the terminal so that on a build the changed files are transferred to the container and the application is automatically restarted. I haven't found a way to achieve this when using the run configuration.
The default auto-sync with jib seems a bit over-eager so that it builds and deploys the image when actually syncing the class files and jars would be enough. I have enabled "On demand" and on a rebuild the auto-sync would then sync the changed files.
The command run by the run configuration is this: skaffold.exe dev --filename skaffold.yaml --label ide=cloudcodeintellij --auto-build=false --auto-deploy=false --auto-sync=false --rpc-port 50051 --port-forward=true --wait-for-deletions-max=2m0s --status-check=true. I would like to actually enabled auto-sync in this case.
Additional Information
IDE type (e.g. IntelliJ, Pycharm): IntelliJ
IDE version: 2023.3
Cloud Code version (Settings > Plugins > Cloud Code): 24.2.1-api-version-223
Cloud SDK (Settings > Cloud Code > Cloud SDK)
Are you allowing the plugin to manage the Cloud SDK: Yes
Version of the Cloud SDK: 444.0.0
Skaffold version (If you are using Kubernetes features; Settings > Cloud Code > Kubernetes): 2.7.0
We use skaffold, helm and jib to deploy our Spring Boot application. When using the auto-sync functionality the whole image is build and deployed. In our case it would be enough to sync the files and jars as that triggers the SB devtools to automatically reload the application.
I got this working by runing
skaffold dev --auto-build=false --auto-deploy=false --auto-sync=true
in the terminal so that on a build the changed files are transferred to the container and the application is automatically restarted. I haven't found a way to achieve this when using the run configuration.The default auto-sync with jib seems a bit over-eager so that it builds and deploys the image when actually syncing the class files and jars would be enough. I have enabled "On demand" and on a rebuild the auto-sync would then sync the changed files.
The command run by the run configuration is this:
skaffold.exe dev --filename skaffold.yaml --label ide=cloudcodeintellij --auto-build=false --auto-deploy=false --auto-sync=false --rpc-port 50051 --port-forward=true --wait-for-deletions-max=2m0s --status-check=true
. I would like to actually enabled auto-sync in this case.Additional Information