Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
.mvn/wrapper
k8s Use Maven wrapper for easier example start, plus expose container por… Jan 15, 2019
src/main/java/hello
.gitignore Add a sample for Jib Oct 24, 2018
README.adoc Take feedback into account Oct 24, 2018
mvnw Use Maven wrapper for easier example start, plus expose container por… Jan 15, 2019
mvnw.cmd
pom.xml
skaffold.yaml

README.adoc

Example: Jib

Jib is one of the supported builders in Skaffold. [Jib](https://github.com/GoogleContainerTools/jib) builds Docker and OCI images for your Java applications and is available as plugins for Maven and Gradle.

The way you configure it in skaffold.yaml is the following build stanza:

build:
     artifacts:
     - image: gcr.io/k8s-skaffold/skaffold-example
       context: .
       jibMaven: {}

Please note that this example is for a standalone Maven project, where all dependencies are resolved from outside. The Jib builder requires that the projects are configured to use the Jib plugins for Maven or Gradle. Multi-module builds require a bit additional configuration.

You can’t perform that action at this time.