8000 GitHub - mpeddada1/jib-cli-demo
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

mpeddada1/jib-cli-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

jib-cli-demo

Available as Maven and Gradle plugins

  • Fast
  • Reproducible
  • Daemonless

Command line interface for building optimized containers from file system content or JAR.

Jib CLI JAR Command

  1. We will be using the Spring Petclinic JAR in this demo
 $ git clone https://github.com/spring-projects/spring-petclinic.git
 $ cd spring-petclinic
 $ ./mvnw package
  1. Jib a JAR
$ jib jar --target=docker://cli-jar-demo target/spring-petclinic-*.jar
  1. Run the image and open your browser http://localhost:8080
 $ docker run -p 8080:8080 cli-jar-demo
  1. Let's explore the layers
 $ dive cli-jar-demo

Jib CLI Build Command

  1. Get your script ready
  2. Create build file
  3. Build to local docker daemon
 $ jib build --target=docker://cli-build-demo
  1. Run the container
 docker run cli-build-demo

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0