Skip to content

Commit

Permalink
Add note on using @QuarkusIntegrationTest with containers
Browse files Browse the repository at this point in the history
  • Loading branch information
glefloch committed Apr 22, 2022
1 parent 60196e1 commit d106fca
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/src/main/asciidoc/container-image.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,22 @@ include::includes/devtools/build.adoc[]

NOTE: If you ever want to build a native container image and already have an existing native image you can set `-Dquarkus.native.reuse-existing=true` and the native image build will not be re-run.

== Using @QuarkusIntegrationTest

To run tests on the resulting image, `quarkus.container-image.build=true` needs to be set using any of the ways that Quarkus supports.

[source, bash, subs=attributes+, role="primary asciidoc-tabs-sync-maven"]
.Maven
----
./mvnw verify -Dquarkus.container-image.build=true
----
[source, bash, subs=attributes+, role="secondary asciidoc-tabs-sync-gradle"]
.Gradle
----
./gradlew quarkusIntTest -Dquarkus.container-image.build=true
----


== Pushing

To push a container image for your project, `quarkus.container-image.push=true` needs to be set using any of the ways that Quarkus supports.
Expand Down

0 comments on commit d106fca

Please sign in to comment.