dockerize and run multi springboot ms using docker compose - vidyasekaran/current_learning GitHub Wiki
I was able to setup this gradle projects in laptop and deployed in docker compose https://www.codeprimers.com/multiple-spring-boot-container-using-docker-compose/ Inlaptop D:/springboot-docker-cicd\springboot-docker-compose-master
Need to try this. https://github.com/spring-petclinic/spring-petclinic-microservices
ws :\workspace\ms_gateway_kuber\sample-spring-microservices-new-master\s
Currently trying to use cloud api gateway and setup project, later will dockerize and deploy in kuber https://github.com/piomin/sample-spring-microservices-new https://github.com/piomin/sample-spring-microservices https://piotrminkowski.wordpress.com/
Dockerizing a Spring Boot Application using Dockerfile and Maven
https://stackabuse.com/dockerizing-a-spring-boot-application/
Dockerizing the Spring Boot App
Now let's dockerize our previously made Spring Boot Application. We will cover the two most commonly used approaches:
Dockerfile – Specifying a file that contains native Docker commands to build the image Maven – Using a Maven plugin to build the image
Dockerizing using Dockerfile
REfer : https://stackabuse.com/dockerizing-a-spring-boot-application/
Dockerizing using Maven
using maven to generate docker image has advantages...
We will be using the fabric8io/docker-maven-plugin.
The way that this Maven plugin works is that it internally creates the Dockerfile based on the configuration in the pom.xml file and then uses the generated Dockerfile to build the image
-
The .jar name - We have to mention the jar name (along with the version) in the file. As our application grows our versions will change and we have to, again and again, update this Dockerfile too.
-
Using the terminal - We have to manually open a terminal and run Docker commands. It would be nice if we could make it a part of a Maven life-cycle so that we can build images as a part of our CI/CD (Continous Integration/Continous Delivery) pipelines.
CI/CD with Jenkins and Docker
https://medium.com/@khandelwal12nidhi/ci-cd-with-jenkins-and-ansible-e9163d4a6e82
Difference between ecs, fargate, efs etc https://www.dragonspears.com/blog/aws-container-orchestration-101-ecs-vs-fargate-vs-eks