Docker image building contd…
Spring petclinic
game of life
Exercise:
- Building packages in docker:
gameoflife with multistage
- To build game of life we need maven with java 8
- Consider the image maven:3-openjdk-8
docker container run -it maven:3-openjdk-8 /bin/bash
git clone https://github.com/wakaleo/game-of-life.git
cd game-of-life
mvn package
Springpetclinic Multistage
- To build spring petcline we need maven with java 11
- Consider the image maven:3-openjdk-11
docker container run -it maven:3-openjdk-11 /bin/bash
git clone https://github.com/spring-projects/spring-petclinic.git
cd spring-petclinic
mvn package
Like this:
Like Loading...