Skip to content

Commit

Permalink
Make Kamelet Catalog examples to use Camel JBang
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Cosentino <ancosen@gmail.com>
  • Loading branch information
oscerd committed Apr 26, 2023
1 parent 895d116 commit 33b3b87
Showing 1 changed file with 35 additions and 1 deletion.
36 changes: 35 additions & 1 deletion docs/modules/ROOT/examples/template/kamelet-options.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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}\`.

Expand Down

0 comments on commit 33b3b87

Please sign in to comment.