Skip to content

Commit

Permalink
Add support for custom AMQP dev service images
Browse files Browse the repository at this point in the history
Fix #22976
  • Loading branch information
cescoffier committed Aug 1, 2023
1 parent 773b8c1 commit ae0a781
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
6 changes: 5 additions & 1 deletion docs/src/main/asciidoc/amqp-dev-services.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,8 @@ You can configure the image and version using the `quarkus.amqp.devservices.imag
[source, properties]
----
quarkus.amqp.devservices.image-name=quay.io/artemiscloud/activemq-artemis-broker:latest
----
----

IMPORTANT: The configured image must be _compatible_ with the `activemq-artemis-broker` one.
The container is launched with the `AMQ_USER`, `AMQ_PASSWORD` and `AMQ_EXTRA_ARGS` environment variables.
The ports 5672 and 8161 (web console) are exposed.
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,12 @@ private ArtemisContainer(DockerImageName dockerImageName, String extra, int fixe
if (dockerImageName.getRepository().endsWith("artemiscloud/activemq-artemis-broker")) {
waitingFor(Wait.forLogMessage(".*AMQ241004.*", 1)); // Artemis console available.
} else {
throw new IllegalArgumentException("Only artemiscloud/activemq-artemis-broker images are supported");
log.infof(
"Detected a different image (%s) for the Dev Service for AMQP. Ensure it's compatible with artemiscloud/activemq-artemis-broker. "
+
"Refer to https://quarkus.io/guides/amqp-dev-services#configuring-the-image for details.",
dockerImageName);
log.info("Skipping startup probe for the Dev Service for AMQP as it does not use the default image.");
}
}

Expand Down

0 comments on commit ae0a781

Please sign in to comment.