1) create simple spring boot app – hello world! and create an image, and push to dockerhub

  • create simple spring boot app – hello world!
  • create an image,
  • push to dockerhubvideo tutorial (external) – https://www.youtube.com/watch?v=FlSup_eelYE

2) Create two services in python and use docker file to embed them

  • create a product service in python.
  • create a html page ‘website’ service ( php:apache)
  • create a Dockerfile that has commands to create a product service image.
  • create a docker-compose file with both product service ( referring to Dockerfile via build command) and website service
  • docker-compose up  and go to http://localhost:5000/ to display the website that displays the products!video tutorial (external) – https://www.youtube.com/watch?v=Qw9zlE3t8Ko
  1. Screen Shot 2018-11-11 at 2.00.58 AMScreen Shot 2018-11-11 at 1.56.22 AM

    Screen Shot 2018-11-09 at 1.01.44 AM

    3) Learn docker (Dockerfile-image-container-expose-run)

  2. Screen Shot 2018-11-09 at 1.04.11 AM
    Screen Shot 2018-11-09 at 1.05.49 AM
    Screen Shot 2018-11-09 at 1.10.42 AM
    Screen Shot 2018-11-09 at 1.12.09 AMScreen Shot 2018-11-09 at 1.13.52 AM
    Screen Shot 2018-11-09 at 1.14.45 AM

    Let’s do the volume mapping so that when you update the source code of index.php, and when you refresh the browser, the changes will take effect.

    docker run -p 80:80 -v /Users/codinko/Desktop/docker/src/:/var/www/html/  hello-world

    video tutorial (external) https://www.youtube.com/watch?v=YFl2mCHdv24-

    4.  Docker explained – for beginners (Theory, Docker compose yml, docker-compose up)

    Screen Shot 2018-11-09 at 1.25.06 AM.png

    Screen Shot 2018-11-09 at 1.25.58 AM.png

    Screen Shot 2018-11-09 at 1.27.44 AM
    Screen Shot 2018-11-09 at 1.30.36 AM

    http://localhost:8080/

    video tutorial (external) – https://www.youtube.com/watch?v=lcQfQRDAMpQ

    5.  Dockerfile vs docker-compose.yml

    https://stackoverflow.com/questions/29480099/docker-compose-vs-dockerfile-which-is-better

Screen Shot 2018-11-09 at 1.35.31 AM.png

Screen Shot 2018-11-09 at 1.37.24 AM.png

The Compose file describes the container in its running state, leaving the details on how to build the container to Dockerfiles