You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2021/11/16 10:11:34 UTC

[GitHub] [camel-karavan] davsclaus opened a new issue #104: JBang run mode

davsclaus opened a new issue #104:
URL: https://github.com/apache/camel-karavan/issues/104


   We should get this working. After installing jbang (such as via sdk) then we should make jbang run via its alias
   
   Today it runs as
   ```
   ```
   
   But that does not work. You have then to copy the CamelJBang.java source file to same dir, rename to not have .java and make it executable. And fix the RELEASE to say 3.13.0.
   
   But if we run via the alias then it should run with the latest release
   
   
   ```
   jbang CamelJBang@apache/camel run routes.yaml --max-messages=10 --debug-level=info
   ```
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-karavan] orpiske edited a comment on issue #104: JBang run mode

Posted by GitBox <gi...@apache.org>.
orpiske edited a comment on issue #104:
URL: https://github.com/apache/camel-karavan/issues/104#issuecomment-970137884


   > Using `jbang ...` makes it easier as the end user does not need to have to install CamelJBang as an app. But just install jbang and make sure jbang --version works.
   
   I think that's a good approach. I have a feature request for jbang to introduce a new extension point, so it would be possible to run Camel K java routes directly. This would also render the CamelJBang script unnecessary ... so it would be better to not rely to much on it. 
   
   **Edit**: logged [CAMEL-17199](https://issues.apache.org/jira/browse/CAMEL-17199) task for me to fix the documentation.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-karavan] davsclaus commented on issue #104: JBang run mode

Posted by GitBox <gi...@apache.org>.
davsclaus commented on issue #104:
URL: https://github.com/apache/camel-karavan/issues/104#issuecomment-970129297


   After running the command, and starting a new shell
   
   ```
   ~/workspace ❯ CamelJBang --help
   [jbang] Resolving dependencies...
   [jbang] Loading MavenCoordinate [org.apache.camel:camel-bom:pom:RELEASE]
   [jbang] [ERROR] Unable to collect/resolve dependency tree for a resolution due to: Failed to collect dependencies at org.apache.camel:camel-bom:pom:RELEASE, caused by: Failed to resolve version for org.apache.camel:camel-bom:pom:RELEASE
   [jbang] Run with --verbose for more details
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-karavan] davsclaus commented on issue #104: JBang run mode

Posted by GitBox <gi...@apache.org>.
davsclaus commented on issue #104:
URL: https://github.com/apache/camel-karavan/issues/104#issuecomment-970429219


   Thanks I have installed it and it works with jbang now.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-karavan] orpiske commented on issue #104: JBang run mode

Posted by GitBox <gi...@apache.org>.
orpiske commented on issue #104:
URL: https://github.com/apache/camel-karavan/issues/104#issuecomment-970137884


   > Using `jbang ...` makes it easier as the end user does not need to have to install CamelJBang as an app. But just install jbang and make sure jbang --version works.
   
   I think that's a good approach. I have a feature request for jbang to introduce a new extension point, so it would be possible to run Camel K java routes directly. This would also render the CamelJBang script unnecessary ... so it would be better to not rely to much on it. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-karavan] mgubaidullin commented on issue #104: JBang run mode

Posted by GitBox <gi...@apache.org>.
mgubaidullin commented on issue #104:
URL: https://github.com/apache/camel-karavan/issues/104#issuecomment-970282947


   Camel vesion could be set the same way as other CamelJBang settings
   
   <img width="1160" alt="Screen Shot 2021-11-16 at 8 36 16 AM" src="https://user-images.githubusercontent.com/1379213/141995241-8233b257-824f-46a8-8a7b-e6356796f6e9.png">
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-karavan] orpiske commented on issue #104: JBang run mode

Posted by GitBox <gi...@apache.org>.
orpiske commented on issue #104:
URL: https://github.com/apache/camel-karavan/issues/104#issuecomment-970132562


   > We could maybe update the github source to say 3.13.0 instead of RELEASE as jbang grabs the BLOB from the main branch as a workaround
   
   That's very strange. I couldn't reproduce it locally. The good news is that we can easily override this. We can run something like:
   
   `rm -rf ~/.jbang/cache && jbang app install --force CamelJBang@apache/camel && jbang -Dcamel.jbang.version=3.13.0 CamelJBang@apache/camel --help` 
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-karavan] orpiske commented on issue #104: JBang run mode

Posted by GitBox <gi...@apache.org>.
orpiske commented on issue #104:
URL: https://github.com/apache/camel-karavan/issues/104#issuecomment-970126724


   @davsclaus what does it happen if you run this?
   
   `rm -rf ~/.jbang/cache  && jbang app install --force CamelJBang@apache/camel && CamelJBang --help` 
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-karavan] mgubaidullin commented on issue #104: JBang run mode

Posted by GitBox <gi...@apache.org>.
mgubaidullin commented on issue #104:
URL: https://github.com/apache/camel-karavan/issues/104#issuecomment-970297100


   @davsclaus @orpiske if you want to test the latest (and sometimes greatest) VSCode extension before it is published to Marketplace, then you could find it in the Actions Artifacts ex. https://github.com/apache/camel-karavan/actions/runs/1467051244


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-karavan] davsclaus commented on issue #104: JBang run mode

Posted by GitBox <gi...@apache.org>.
davsclaus commented on issue #104:
URL: https://github.com/apache/camel-karavan/issues/104#issuecomment-970136615


   Using `jbang ...` makes it easier as the end user does not need to have to install CamelJBang as an app. But just install jbang and make sure jbang --version works.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-karavan] orpiske edited a comment on issue #104: JBang run mode

Posted by GitBox <gi...@apache.org>.
orpiske edited a comment on issue #104:
URL: https://github.com/apache/camel-karavan/issues/104#issuecomment-970137884






-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-karavan] davsclaus commented on issue #104: JBang run mode

Posted by GitBox <gi...@apache.org>.
davsclaus commented on issue #104:
URL: https://github.com/apache/camel-karavan/issues/104#issuecomment-970136116


   Ah yeah if we specify the version in command line, then @mgubaidullin can make karavan do that. And then maybe add a setting somewhere where you can specify the version to use, if the default version is not what you want


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-karavan] davsclaus commented on issue #104: JBang run mode

Posted by GitBox <gi...@apache.org>.
davsclaus commented on issue #104:
URL: https://github.com/apache/camel-karavan/issues/104#issuecomment-970129758


   We could maybe update the github source to say 3.13.0 instead of RELEASE as jbang grabs the BLOB from the main branch as a workaround


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-karavan] davsclaus commented on issue #104: JBang run mode

Posted by GitBox <gi...@apache.org>.
davsclaus commented on issue #104:
URL: https://github.com/apache/camel-karavan/issues/104#issuecomment-970120642


   @orpiske we need to get the CamelJBang alias to work with the new 3.13.0 release.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-karavan] davsclaus commented on issue #104: JBang run mode

Posted by GitBox <gi...@apache.org>.
davsclaus commented on issue #104:
URL: https://github.com/apache/camel-karavan/issues/104#issuecomment-970118681


   <img width="1630" alt="Screenshot 2021-11-16 at 11 11 20" src="https://user-images.githubusercontent.com/477100/141966031-203fe0a5-0f58-4e97-a7ae-4476e2e536ba.png">
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-karavan] orpiske commented on issue #104: JBang run mode

Posted by GitBox <gi...@apache.org>.
orpiske commented on issue #104:
URL: https://github.com/apache/camel-karavan/issues/104#issuecomment-970136699


   The RELEASE is there to avoid the problem we had on 3.12 release, where it [did not replace the stable](https://github.com/apache/camel/blob/camel-3.12.0/dsl/camel-jbang/camel-jbang-main/dist/CamelJBang.java#L21) version during the release process. For 3.13 and newer, we basically instruct jbang to use the [latest released version](https://github.com/apache/camel/blob/main/dsl/camel-jbang/camel-jbang-main/dist/CamelJBang.java#L21) by default. 
   
   One alternative would be to manually do the change during the release process, but I am afraid it would be error prone. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-karavan] orpiske commented on issue #104: JBang run mode

Posted by GitBox <gi...@apache.org>.
orpiske commented on issue #104:
URL: https://github.com/apache/camel-karavan/issues/104#issuecomment-970123956


   That's very strange. It's it a caching issue on `$HOME/.jbang/cache`? I will take a look. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-karavan] mgubaidullin closed issue #104: JBang run mode

Posted by GitBox <gi...@apache.org>.
mgubaidullin closed issue #104:
URL: https://github.com/apache/camel-karavan/issues/104


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-karavan] orpiske edited a comment on issue #104: JBang run mode

Posted by GitBox <gi...@apache.org>.
orpiske edited a comment on issue #104:
URL: https://github.com/apache/camel-karavan/issues/104#issuecomment-970123956


   That's very strange. Is it a caching issue on `$HOME/.jbang/cache`? I will take a look. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-karavan] davsclaus commented on issue #104: JBang run mode

Posted by GitBox <gi...@apache.org>.
davsclaus commented on issue #104:
URL: https://github.com/apache/camel-karavan/issues/104#issuecomment-970120903


   So you can say
   
   ```
   jbang CamelJBang@apache/camel run routes.yaml
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-karavan] orpiske edited a comment on issue #104: JBang run mode

Posted by GitBox <gi...@apache.org>.
orpiske edited a comment on issue #104:
URL: https://github.com/apache/camel-karavan/issues/104#issuecomment-970132562


   > We could maybe update the github source to say 3.13.0 instead of RELEASE as jbang grabs the BLOB from the main branch as a workaround
   
   That's very strange. I couldn't reproduce it locally. The good news is that we can easily override this. We can run something like:
   
   `jbang -Dcamel.jbang.version=3.13.0 CamelJBang@apache/camel --help` 
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org