Skip to content

iamludal/jib-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jib Demo 🏗️

This is a Spring Boot demo project to show how to build a Docker image using Jib.

You can navigate through the Git history to understand the different steps to set up Jib in your Java project.

Note

For more information about Jib, please refer to the official documentation.

Requirements

  • Java 21
  • Maven 3.8.4

Instructions

To compile the project:

mvn clean package

To build the Docker image and push it to a Docker registry (no Docker daemon required):

mvn jib:build

To only build the Docker image locally with Jib (using the local Docker daemon):

mvn jib:dockerBuild

To build the Docker image locally with native Docker:

docker build . -t jib-demo:dockerfile

About

Demo of the jib plugin

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages