This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets-examples.git

commit 5dccb2d8a632bb58eee2357905b0628fcdd8c7ec
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Fri Apr 14 09:56:28 2023 +0200

    MQTT example
---
 jbang/mqtt/README.adoc | 23 +++++++++++++++++++----
 1 file changed, 19 insertions(+), 4 deletions(-)

diff --git a/jbang/mqtt/README.adoc b/jbang/mqtt/README.adoc
index 99a4451..2cce6fc 100644
--- a/jbang/mqtt/README.adoc
+++ b/jbang/mqtt/README.adoc
@@ -28,15 +28,14 @@ Which allows to run CamelJBang with `camel` as shown below.
 
 You need to run a MQTT broker such as via Docker, or download and run Apache 
ActiveMQ Artemis.
 
-To use docker, run the following command
+To use docker (docker compose), run the following command:
 
 [source,sh]
 ----
-docker run -it -p 1883:1883 -p 9001:9001 eclipse-mosquitto
+/start.sh
 ----
 
-
-Then you can run this example using:
+Then you can run the Camel integration using:
 
 [source,sh]
 ----
@@ -64,6 +63,22 @@ The Camel integration will then consume the payload and 
output in the console.
 2023-04-14 08:58:58.676  INFO 62348 --- [calCliConnector] mqtt.yaml:13         
               : The temperature is 21
 ----
 
+==== Stopping
+
+To stop Docker, you can run
+
+[source,sh]
+----
+$ docker-compose down
+----
+
+And you can stop Camel with
+
+[source,sh]
+----
+$ camel stop mqtt
+----
+
 
 === Help and contributions
 

Reply via email to