From d106fca133792f47506d0c3939a2423ca9db89e6 Mon Sep 17 00:00:00 2001 From: Guillaume Le Floch Date: Fri, 22 Apr 2022 15:39:27 +0200 Subject: [PATCH] Add note on using @QuarkusIntegrationTest with containers --- docs/src/main/asciidoc/container-image.adoc | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/src/main/asciidoc/container-image.adoc b/docs/src/main/asciidoc/container-image.adoc index ce5ccae55478d..6b8b855cd9d69 100644 --- a/docs/src/main/asciidoc/container-image.adoc +++ b/docs/src/main/asciidoc/container-image.adoc @@ -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.