You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2023/04/26 15:28:24 UTC

[camel-kamelets] branch main updated: Make Kamelet Catalog examples to use Camel JBang

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

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


The following commit(s) were added to refs/heads/main by this push:
     new 33b3b87a Make Kamelet Catalog examples to use Camel JBang
33b3b87a is described below

commit 33b3b87ad8f8913eef899b4ed037d91effc1a743
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Apr 26 17:27:48 2023 +0200

    Make Kamelet Catalog examples to use Camel JBang
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 .../ROOT/examples/template/kamelet-options.adoc    | 36 +++++++++++++++++++++-
 1 file changed, 35 insertions(+), 1 deletion(-)

diff --git a/docs/modules/ROOT/examples/template/kamelet-options.adoc b/docs/modules/ROOT/examples/template/kamelet-options.adoc
index c88415f1..a557a76d 100644
--- a/docs/modules/ROOT/examples/template/kamelet-options.adoc
+++ b/docs/modules/ROOT/examples/template/kamelet-options.adoc
@@ -30,7 +30,41 @@ At runtime, the \`{name}\` Kamelet relies upon the presence of the following dep
 
 jsonpathList::example$yaml/${basename}.kamelet.yaml[query='nodes$.spec.dependencies.*',format='value']
 
-== Usage
+== Camel Jbang usage
+
+=== *Prerequisites*
+
+* You've installed https://www.jbang.dev/[Jbang].
+* You have executed the following command:
+
+[source,shell,subs=+attributes]
+----
+jbang app install camel@apache/camel
+----
+
+Supposing you have a file named route.yaml with this content:
+
+[source,yaml,subs='+attributes,macros']
+----
+- route:
+    from:
+      uri: "kamelet:timer-source"
+      parameters:
+        period: 10000
+        message: 'test'
+      steps:
+        - to: 
+            uri: "kamelet:log-sink"
+----
+
+You can now run it directly through the following command
+
+[source,shell,subs=+attributes]
+----
+camel run route.yaml
+----
+
+== Camel K Enviroment Usage
 
 This section describes how you can use the \`{name}\`.