From the course: Kubernetes for Java Developers

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Build a Docker image using Jib

Build a Docker image using Jib

From the course: Kubernetes for Java Developers

Start my 1-month free trial

Build a Docker image using Jib

- Dockerfile is a common way to package your Java applications as a Docker image. But, as a Java developer, you're building applications using Maven, Gradle and similar tools. How does this building of Docker Image fits into your workflow? Jib is a tool that supports that. This section will explain how to build your Docker Image using Jib. Jib builds optimized Docker and OCI images for your Java applications. It is commonly therefore too, as a compiler for containers. Jib allows you to deploy changes fast. It separates your applications into multiple layers, spreading dependencies from classes. Now you don't have to wait for Docker to rebuild your entire Java application. Just deploy the layers that changed. A Docker daemon is not needed to build the image. An image is built directly to the registry. Optionally, it can also be built to a Docker daemon. Writing a Dockerfile to create Docker image for your Java application means you need to learn two different sets of tools, one for…

Contents