DevOps Classroomnotes 14/Jun/2022

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
  • To build the application
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
  • To build the application
git clone https://github.com/spring-projects/spring-petclinic.git
cd spring-petclinic
mvn package

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

About continuous learner

devops & cloud enthusiastic learner