From the course: Extending, Securing, and Dockerizing Spring Boot Microservices

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Leverage a Docker Maven plugin

Leverage a Docker Maven plugin

From the course: Extending, Securing, and Dockerizing Spring Boot Microservices

Start my 1-month free trial

Leverage a Docker Maven plugin

- [Instructor] In the last three videos, it was a very manual process of removing images, building jars and recreating images. Well, there's good news. There are Maven plugins to automate these tasks. We're going to use the Spotify plugin. With the Spotify plugin, we no longer need a Docker file in the project folder and the configuration is all inside the pom.xml. So, in the pom.xml at the bottom is where we have our Spotify plugin. And you see a lot of the similar items that were in the Docker file including the entry point, the base start name, that's where we start from Java 8, explorecali is the image name and we're going to have to establish the target folder and we can actually leverage some existing environment names that come from Maven which is like the final name whenever we build the jar and there's other tags here such as the force tag will force the image to be overwritten if it exists already so we don't have to manually remove it. If there's other settings and tags you…

Contents