Docker for Java and Spring Boot Developers

Video description

Docker is an open-source tool to package your applications and everything they need as containers. You can then use these containers on your laptop, in testing, stage, and all the way to production, which could be on the cloud or servers within your organization.

This course starts with the basics of AWS EC2, which we will use to launch Linux instances to install and use Docker. You will master all the fundamentals of Docker such as Docker layers, networking, volumes, and bind mounts. You will learn how to launch different types of containers and master various Docker commands in the process. You will create a Docker hub account and learn how to push your images to the Docker hub as well.

You will create two Spring Boot microservice restful applications that will use each other. You will create Docker files for these two projects using Visual Studio Code IDE. You will launch a MySQL container that will be used by your microservice containers. You will learn how to access the applications running in the containers from your local machines. You will then use Docker Compose to launch multiple containers in one shot. You will also master what Docker Swarm is and how to use it.

What You Will Learn

  • Use various Docker commands to pull images and launch containers
  • Learn how Docker networking works
  • Use Docker volumes and bind mounts and know the differences
  • Dockerize your Spring Boot microservice applications
  • Use Docker Compose to launch multiple containers in one shot
  • Learn the fundamentals of Docker Swarm

Audience

Experienced Java developers who want to learn Docker and use it on their projects. Spring Boot developers who want to understand how Docker works and want to create Docker files and Docker Compose files to Dockerize their projects.

About The Author

Bharath Thippireddy: Bharath Thippireddy is an entrepreneur, software architect, and public speaker who has trained over 350,000 students across the globe. He is an Oracle certified developer, web component developer, business component developer, and web services developer who loves learning new things in technology and personal development, and sharing them on his website and YouTube channel.

He has mentored students in classroom training as well as in the corporate world in India and USA and has spoken on technical topics at several Agile conferences. While in India, he volunteers to teach interviews and soft skills at Vivekananda Kendra.

Table of contents

  1. Chapter 1 : Introduction and AWS Basics
    1. Course Introduction
    2. Create AWS Account
    3. EC2
    4. Launch AWS Instance Final
    5. MAC – Connect to Instance
    6. Windows – Use MobaXTerm
    7. EC2 Tips
    8. Linux Directories
    9. Browsing Directories and Files
    10. SSH
    11. Install Software
    12. VI Editor
  2. Chapter 2 : Software Setup for Micro Services
    1. Install Java
    2. Install STS
    3. Configure JDK in STS
    4. Windows Only-Install MySQL Workbench
    5. Launch MySQL Workbench
    6. Install Postman
  3. Chapter 3 : Create Micro Services
    1. Use Case
    2. Create Database Tables
    3. Create Credit Score App
    4. Configure Data Source
    5. Test Credit Score App
    6. Create Credit Card App
    7. Test Credit Card App
    8. Build the Projects
  4. Chapter 4 : Docker
    1. Introduction
    2. Docker Architecture and Workflow
    3. Docker in Action
    4. Docker Run
    5. Docker Clean Up
    6. Get Comfortable with Docker Run
    7. Docker Commit
    8. Docker Layers and Overlay Storage
    9. Launch MySQL Container
    10. Volumes and Bind Mounts
    11. Use Volumes
    12. Use Bind Mounts
    13. Docker Networking in Action
    14. Change a Containers Network
    15. Windows-Install Docker
    16. Dockerfile Introduction
    17. First Dockerfile
    18. Beauty of Docker Layers
  5. Chapter 5 : Dockerize Micro Services
    1. Visual Studio Code – the Docker IDE
    2. Install Visual Studio Code IDE
    3. Launch MySQL Container
    4. Prepare Apps for Dockerization
    5. Dockerize Spring Boot Apps
    6. Build Launch and Test Containers
    7. Push Images to Docker Hub
  6. Chapter 6 : Docker Compose
    1. Introduction
    2. YAML Syntax
    3. Important YAML Elements in Docker Compose
    4. Compose Networks
    5. Compose Volumes
    6. Docker Compose File Explained
    7. Compose MySQL
    8. Compose Micro Services
    9. Docker Compose Up
  7. Chapter 7 : Docker Swarm
    1. Introduction
    2. How Swarm Works
    3. Architecture
    4. Create EC2 Instances
    5. Set Up Swarm
    6. Add Another Manager
    7. Create a Service
    8. Multiple Replicas and Scaling
    9. Update and Rollback
    10. Drain Worker Node
    11. Docker Stack Deploy
    12. Stack Deploy
    13. Remove Worker Node
    14. Switch Managers
    15. Replicas in the Swarm

Product information

  • Title: Docker for Java and Spring Boot Developers
  • Author(s): Bharath Thippireddy
  • Release date: May 2021
  • Publisher(s): Packt Publishing
  • ISBN: 9781801812979