GitXplorerGitXplorer
m

jib-cli-demo

public
1 stars
0 forks
0 issues

Commits

List of commits on branch main.
Unverified
33f0c567f6ee985487642859d28192cbb9684916

Update script

mmpeddada1 committed 4 years ago
Verified
049964e83b77154713894723923e393190d739bb

Update README.md

mmpeddada1 committed 4 years ago
Verified
44d8568ee47ca9573772eb018295318b6af58a07

Update README.md

mmpeddada1 committed 4 years ago
Unverified
f0def968fa6cede22b5b0178b3562bf41d415ee4

Update README.md

mmpeddada1 committed 4 years ago
Unverified
47ea9d5daf78d5f9d83a55d5f1bde75d03870497

Update README.md

mmpeddada1 committed 4 years ago
Unverified
f22b732602fff7991287ce4983ebcb2d60c97992

Update READNE.md and add demo scripts

mmpeddada1 committed 4 years ago

README

The README file for this repository.

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