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
The following commit(s) were added to refs/heads/main by this push: new bf85aa1 Add custom kamelet example bf85aa1 is described below commit bf85aa1eb93b5701a00a1e2b57a051b5f0e0eedb Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Sun Dec 4 12:00:47 2022 +0100 Add custom kamelet example --- jbang/user/README.adoc | 31 +++++++------------------------ 1 file changed, 7 insertions(+), 24 deletions(-) diff --git a/jbang/user/README.adoc b/jbang/user/README.adoc index 16fa6bd..1613bf4 100644 --- a/jbang/user/README.adoc +++ b/jbang/user/README.adoc @@ -2,6 +2,9 @@ This example is using a custom Kamelet that fetches random user data. +The custom kamelets can be located locally or shared on github. +This example demonstrates how to run this in both situations. + === Install JBang @@ -31,25 +34,16 @@ Then you can run this example using: [source,sh] ---- -$ camel run user.java +$ camel run user.java --local-kamelet-dir=../../custom-kamelets ---- -Or run with JBang using the longer command line (without installing camel as app in JBang): +And to refer to the custom kamelets with link to github: [source,sh] ---- -$ jbang camel@apache/camel run user.java +$ camel run user.java --local-kamelet-dir=https://github.com/apache/camel-kamelets-examples/tree/main/custom-kamelets ---- -=== Live reload - -You can run the example in dev mode which allows you to edit the example, -and hot-reload when the file is saved. - -[source,sh] ----- -$ camel run user.java --dev ----- === Run directly from github @@ -57,20 +51,9 @@ The example can also be run directly by referring to the github URL as shown: [source,sh] ---- -$ jbang camel@apache/camel run https://github.com/apache/camel-kamelets-examples/tree/main/jbang/user +$ jbang camel@apache/camel run https://github.com/apache/camel-kamelets-examples/tree/main/jbang/user --local-kamelet-dir=https://github.com/apache/camel-kamelets-examples/tree/main/custom-kamelets ---- -=== Developer Web Console - -You can enable the developer console via `--console` flag as show: - -[source,sh] ----- -$ camel run user.java --console ----- - -Then you can browse: http://localhost:8080/q/dev to introspect the running Camel applicaton. - === Help and contributions