
UdemyThis course walks through containerizing a Spring Boot application with Docker, starting from a simple RESTful API built as an executable JAR. You'll write a Dockerfile that layers your JAR on top of a base Java image, then use the Docker command line to build and run the resulting container, verifying the API with Postman along the way.
Suited to Java developers who already have a working Spring Boot service and want a practical, step-by-step path to packaging it for deployment, rather than a deep dive into Docker internals.
In this course you will learn how easy it is to build Docker images for your Spring Boot Applications.
The uses a simple Spring Boot Application which provides a simple RESTful API.
This application is built into an executable JAR and place inside of a Docker image.
You will learn how to write a Docker file, which will use a base Java image and then copy your Spring Boot executable JAR into the new Docker Image.
Using the command line, you will instruct Docker to build your Spring Boot Docker Image.
Once the Docker image is created, you can instruct Docker to run the image in a new container. Once running, you can use Postman to access the RESTful API in the Spring Boot application.
You will learn how to build two different Docker Images. One Docker image is with the Spring Boot Application in a single JAR archive. The second Docker image will have the Spring Boot Application in layers. Using layers helps save disk space when the application is deployed.
To support CI builds, you can also configure Apache Maven to build your application and Docker image.
In the course, you will learn how to configure the Fabric8 Maven Docker Plugin to build the Spring Boot Application, and Docker image. You will also learn how to configure the plugin to push your Docker Image to Docker Hub.
Enroll today if you wish to see how easy it is to build Spring Boot Docker images!
Advertisement
More in Development







