Using Docker for JVM (Java Virtual Machine) Projects


Course Number: DVOP-156
Duration: 0.5 days (3.25 hours)
Format: Live, hands-on

Docker with JVM Training Overview

This live, online Java Virtual Machine (JVM) projects training teaches attendees how to use Docker for their Java Virtual Machine (JVM) Projects to deliver reliable, containerized software as part of the automation process. After attending this course, students are prepared to immediately use Docker in their own JVM projects. 

Location and Pricing

This course is taught as a private, live online class for teams of 3 or more. All our courses are hands-on, instructor-led, and tailored to fit your group’s goals and needs. Most Accelebrate classes can be flexibly scheduled for your group, including delivery in half-day segments across a week or set of weeks. To receive a customized proposal and price quote for online corporate training, please contact us.

In addition, some courses are available as live, instructor-led training from one of our partners.

Objectives

  • Understand the tooling that helps with managing and abstracting Docker operations for JVM projects
  • Implement typical developer workflows using Docker
  • Build images for your JVM applications and distribute them to a Docker registry
  • Write and execute different types of tests that use Docker containers as fixtures
  • Automate the use of Docker from the IDE, the build process, and a CI/CD pipeline

Prerequisites

  • Experience with Java application development or any other JVM language (such as Groovy or Scala) 
  • A working knowledge of Docker, specifically using the Docker CLI to manage images (pull, push, create) and containers (create, run, stop), Dockerfiles, and Docker Compose
  • Basic familiarity with JUnit 5 (useful but not required)

Outline

Expand All | Collapse All

Introduction
  • What’s your experience with Docker as a Java developer?
  • A brief review of Docker concepts and terminology
  • Typical Docker workflows for JVM developers
Containerization and Distribution of JVM Projects
  • Writing a Dockerfile for a Java application
  • Building an image for a Java application
  • Running the Java application in a container
  • Pushing an image to a registry;
  • Google Jib for abstracting the workflow
  • Docker CLI to produce an image
  • Running a previously built image in a container
  • Using the Docker CLI to push an image to Docker Hub
  • Using Jib to implement the containerization workflow
Resilient, Reproducible Testing with Docker Containers
  • Different types of testing
  • Benefits of using Docker containers for testing
  • Introduction of TestContainers
  • Testing a multi-container application stack
  • Setting up, configuring, and using TestContainers with JUnit 5
  • Use TestContainers to write a test for a web service
  • Use Docker Compose with TestContainers
Integrating Docker with JVM Tooling
  • Using Docker from the IDE (IntelliJ and Eclipse)
  • Using Docker from the build tool (Maven and Gradle)
  • Powering a Jenkins CI/CD pipeline with Docker
  • Run a container from IntelliJ Community Edition
  • Run a container from Maven or Gradle
  • Model Jenkins build pipeline steps that use Docker
Conclusion

Training Materials

All attendees receive a copy of the instructor’s presentation and related code.

Software Requirements

  • A machine (Linux, macOS, or Windows) with the latest Docker Community Edition, JDK 8 or higher, and IntelliJ Community Edition or Ultimate Edition installed
  • Pull the Docker image openjdk:jre-alpine with the command docker pull openjdk:jre-alpine
  • A Docker Hub account


Learn faster

Our live, instructor-led lectures are far more effective than pre-recorded classes

Satisfaction guarantee

If your team is not 100% satisfied with your training, we do what's necessary to make it right

Learn online from anywhere

Whether you are at home or in the office, we make learning interactive and engaging

Multiple Payment Options

We accept check, ACH/EFT, major credit cards, and most purchase orders



Recent Training Locations

Alabama

Birmingham

Huntsville

Montgomery

Alaska

Anchorage

Arizona

Phoenix

Tucson

Arkansas

Fayetteville

Little Rock

California

Los Angeles

Oakland

Orange County

Sacramento

San Diego

San Francisco

San Jose

Colorado

Boulder

Colorado Springs

Denver

Connecticut

Hartford

DC

Washington

Florida

Fort Lauderdale

Jacksonville

Miami

Orlando

Tampa

Georgia

Atlanta

Augusta

Savannah

Hawaii

Honolulu

Idaho

Boise

Illinois

Chicago

Indiana

Indianapolis

Iowa

Cedar Rapids

Des Moines

Kansas

Wichita

Kentucky

Lexington

Louisville

Louisiana

New Orleans

Maine

Portland

Maryland

Annapolis

Baltimore

Frederick

Hagerstown

Massachusetts

Boston

Cambridge

Springfield

Michigan

Ann Arbor

Detroit

Grand Rapids

Minnesota

Minneapolis

Saint Paul

Mississippi

Jackson

Missouri

Kansas City

St. Louis

Nebraska

Lincoln

Omaha

Nevada

Las Vegas

Reno

New Jersey

Princeton

New Mexico

Albuquerque

New York

Albany

Buffalo

New York City

White Plains

North Carolina

Charlotte

Durham

Raleigh

Ohio

Akron

Canton

Cincinnati

Cleveland

Columbus

Dayton

Oklahoma

Oklahoma City

Tulsa

Oregon

Portland

Pennsylvania

Philadelphia

Pittsburgh

Rhode Island

Providence

South Carolina

Charleston

Columbia

Greenville

Tennessee

Knoxville

Memphis

Nashville

Texas

Austin

Dallas

El Paso

Houston

San Antonio

Utah

Salt Lake City

Virginia

Alexandria

Arlington

Norfolk

Richmond

Washington

Seattle

Tacoma

West Virginia

Charleston

Wisconsin

Madison

Milwaukee

Alberta

Calgary

Edmonton

British Columbia

Vancouver

Manitoba

Winnipeg

Nova Scotia

Halifax

Ontario

Ottawa

Toronto

Quebec

Montreal

Puerto Rico

San Juan