Introduction to Docker for Java Developers

Introduction to Docker for Java Developers

1h 23mAdvanced2022-05-23

Authors

Mary Ellen Bowman

Mary Ellen Bowman

25+ years of full life-cycle software development experience

Course details

Docker—a leading software container platform—can simplify the overall application delivery experience by providing a common platform for collaboration. Docker integrates seamlessly with existing tool chains, making it easier to deliver software rapidly if you’re running a Java application. In this course, instructor Mary Ellen Bowman helps you discover how to get started with Docker, with tips and tricks tailored specifically for Java developers working with the platform.

Learn how the Docker engine provides an easy-to-build runtime environment, a must-have for Java developers. Explore the magic of using Docker to build and run a java application without installing Maven, Tomcat, or the required version of Java. Along the way, Mary gives you pointers on best practices for containerization and using dockerfile alternatives such as Cloud Native Buildpacks and plugins for Google Jib and Spring Boot.

Skills covered

DockerVirtualizationJavaOraclePersonaProgramming LanguagesNetwork and System AdministrationSoftware Development

Concepts

Introduction

  • Ship it
  • What you should know

Getting Started

  • Imagine building and launching a Java app without Java
  • Installing Docker Desktop
  • Building, deploying, and launching the Java app
  • Scaffolding Java applications with Docker

Understanding Docker

  • Understanding containerization
  • Comparing images to containers
  • Writing Dockerfiles
  • Discover the Docker CLI
  • Learn Dockerfile instructions
  • Convert code to a Docker image
  • Challenge - Modify Dockerfile to remove Forever.java
  • Solution - Modify Dockerfile to remove Forever.java

Containerization Best Practices

  • Layering in Docker images
  • Building multistage Docker images
  • Specify volumes and ports
  • Docker registry
  • Container orchestration with Docker Compose

Dockerfile Alternatives

  • Ditching the Dockerfile
  • Cloud Native Buildpacks
  • Spring Boot Docker plugin
  • The Google Jib plugin

Conclusion

  • Next steps
40,000 Toman