diff --git a/stream-applications-release-train/stream-applications-docs/src/main/asciidoc/overview.adoc b/stream-applications-release-train/stream-applications-docs/src/main/asciidoc/overview.adoc index 995ef73a..2b0c8ec1 100644 --- a/stream-applications-release-train/stream-applications-docs/src/main/asciidoc/overview.adoc +++ b/stream-applications-release-train/stream-applications-docs/src/main/asciidoc/overview.adoc @@ -113,6 +113,32 @@ cd applications/sink/log-sink/apps/log-sink-rabbit ./mvnw clean package ``` +==== Building a Docker image +The apps use the https://github.com/GoogleContainerTools/jib/tree/master/jib-maven-plugin[Jib Maven Plugin] to build and publish the Docker image. +If you have made some changes to an app, you may want to build the image and test it locally. + +NOTE: If you plan to use the image with minikube, run the following command before building the image: + +``` +eval $(minikube docker-env) +``` + +To build the image in your local registry: + +``` +./mvn clean package jib:dockerBuild +``` + + +To publish the image to a remote registry: + +``` +jib:build \ + -Djib.to.image=myregistry/myimage:latest \ + -Djib.to.auth.username=$USERNAME \ + -Djib.to.auth.password=$PASSWORD +``` + == Patching Pre-built Applications === Adding new dependencies @@ -176,34 +202,6 @@ cd target There you will find the binder based uber jar with your changes. -==== Building a Docker image -The apps use the https://github.com/GoogleContainerTools/jib/tree/master/jib-maven-plugin[Jib Maven Plugin] to build and publish the Docker image. -If you have made some changes to an app, you may want to build the image and test it locally. - -NOTE: If you plan to use the image with minikube, run the following command before building the image: - -``` -eval $(minikube docker-env) -``` - -To build the image in your local registry: - -``` -./mvn clean package jib:dockerBuild -``` - - -To publish the image to a remote registry: - -``` -jib:build \ - -Djib.to.image=myregistry/myimage:latest \ - -Djib.to.auth.username=$USERNAME \ - -Djib.to.auth.password=$PASSWORD -``` - - - === Update existing dependencies or add new resources in the application Modifying the plugin as above work when there are new dependencies to add to the application.