Skip to content

Commit

Permalink
Merge pull request quarkusio#25126 from glefloch/fix/24987
Browse files Browse the repository at this point in the history
Add note on using @QuarkusIntegrationTest with containers
  • Loading branch information
geoand authored Apr 26, 2022
2 parents e4b4321 + d106fca commit 75f01bf
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 75f01bf

Please sign in to comment.