Skip to content

Commit

Permalink
Take feedback into account
Browse files Browse the repository at this point in the history
Signed-off-by: David Gageot <david@gageot.net>
  • Loading branch information
dgageot committed Oct 22, 2018
1 parent d114f70 commit d75a792
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/annotated-skaffold.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ build:

# jibMaven builds containers using the Jib plugin for Maven.
# jibMaven:
# module: modulename # selects which maven module to build
# module: modulename # selects which maven module to build, for a multimodule project
# profile: profilename # selects which maven profile to activate

# jibGradle builds containers using the Jib plugin for Gradle.
Expand Down
5 changes: 5 additions & 0 deletions examples/jib/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ build:
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.

ifndef::env-github[]
==== link:{github-repo-tree}/examples/jib[Example files icon:github[]]

Expand Down
2 changes: 2 additions & 0 deletions examples/jib/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
<container>
<jvmFlags>
<jvmFlag>-Djava.security.egd=file:/dev/./urandom</jvmFlag>
<jvmFlag>-XX:+UnlockExperimentalVMOptions</jvmFlag>
<jvmFlag>-XX:+UseCGroupMemoryLimitForHeap</jvmFlag>
</jvmFlags>
</container>
</configuration>
Expand Down
2 changes: 1 addition & 1 deletion integration/examples/annotated-skaffold.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ build:

# jibMaven builds containers using the Jib plugin for Maven.
# jibMaven:
# module: modulename # selects which maven module to build
# module: modulename # selects which maven module to build, for a multimodule project
# profile: profilename # selects which maven profile to activate

# jibGradle builds containers using the Jib plugin for Gradle.
Expand Down
7 changes: 6 additions & 1 deletion integration/examples/jib/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,16 @@ The way you configure it in `skaffold.yaml` is the following build stanza:
----
build:
artifacts:
- image: gcr.io/k8s-skaffold/skaffold-jib
- 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.

ifndef::env-github[]
==== link:{github-repo-tree}/examples/jib[Example files icon:github[]]

Expand Down
2 changes: 2 additions & 0 deletions integration/examples/jib/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
<container>
<jvmFlags>
<jvmFlag>-Djava.security.egd=file:/dev/./urandom</jvmFlag>
<jvmFlag>-XX:+UnlockExperimentalVMOptions</jvmFlag>
<jvmFlag>-XX:+UseCGroupMemoryLimitForHeap</jvmFlag>
</jvmFlags>
</container>
</configuration>
Expand Down

0 comments on commit d75a792

Please sign in to comment.