KeyB0rys
KeyB0rys

Reputation: 504

Build jar file with gradle jibDockerBuild

is it possible to build a jar file with a gradle jibDockerBuild command?

The problem that I have is that I want to run my application locally, and it is harder when I have to use a docker image.

So I am looking for a way to run/build my spring boot application locally using jib configuration than I have in build.gradle.kts file

Upvotes: 0

Views: 256

Answers (1)

Vetrivel M
Vetrivel M

Reputation: 1

you can enable Jar/BootJar tasks to build jar files inside the container.

reference: https://docs.spring.io/spring-boot/gradle-plugin/packaging.html

for docker container config: https://github.com/GoogleContainerTools/jib/blob/master/jib-gradle-plugin/README.md#build-to-docker-daemon

Upvotes: 0

Related Questions