Docker Multistage Build - Continuous Delivery and Continuous Integration

Subscribers:
11,000
Published on ● Video Link: https://www.youtube.com/watch?v=wjRdq0IbWvA



Duration: 20:33
212 views
9


Use the Docker Multistage Build feature to first build a .jar-file and then add it to a much lighter application image.
The builder image contains all the required JDK's and SDK's and the source code.
The application image only contains the resulting Spring Boot .jar-file

This can be done with 1 Dockerfile!!!

Your CI system is going to love you because it only needs to run the Dockerfile and will not be polluted with jdk's and sdk's!

Enjoy! :-)
Feel free to write a comment or question.
The code is located here:
https://github.com/ekim197711/docker-multistage-build
Follow me on twitter:
https://twitter.com/MikeMoelNielsen




Other Videos By Mike Møller Nielsen


2019-09-08Scala functions are flexible and useful!
2019-09-07Scala while and for loops
2019-09-06Scala Case Class and Class
2019-09-05Scala and Spring Boot including Jackson json mapping of the built in types
2019-09-04Dozer custom converter and tips and tricks for the Dozer xml files
2019-09-03Spring Boot Populating Database with test data at startup
2019-09-02Spring Boot application being RabbitMq Consumer AND Producer
2019-08-30RabbitMQ - The FanOut, Topic and Direct EXCHANGE types - simulate in management console
2019-08-28Spring Boot Swagger ui and Swagger annotations - Document your endpoints
2019-08-28HashiCorp Vault Http API - Create and get secrets with curl
2019-08-27Docker Multistage Build - Continuous Delivery and Continuous Integration
2019-08-26Docker and IntelliJ - Start and stop and Inspect the filesystem of docker containers
2019-08-25Jenkins Multistage Multibranch Job - Create a workflow with the Jenkinsfile
2019-08-25Docker Compose - 2 Spring Boot applications dependent on each other running by using docker compose
2019-08-24Docker and the Dockerfile - The basic syntax and explaination of EXPOSE
2019-08-22Java 12 Switch Statement with arrow syntax!
2019-08-21Spring Boot MongoDB MongoTemplate and Query
2019-08-20Spring Boot JUnit5 Kotlin
2019-08-19Lambda expressions - Also the method reference :: is explained
2019-08-18Spring Boot and Sftp - Avoid ftp and ftps if possible
2019-08-15Spring Boot - Docker Image with the jar file using the Gradle Docker Plugin



Tags:
java
docker
dockerfile
multistage
build
gradle
pipeline
spring
springboot
springframework