Closed mkhudyakov closed 1 year ago
This doc is a bit outdated. You need to install karavan-core first: https://github.com/apache/camel-karavan/blob/730881464b057a2060a4a24449277d81fc56987b/.github/workflows/app.yml#L49
Is there some doc we can improve then. And PR is of course welcome
@mgubaidullin, @davsclaus, thank you for reply.
What I'm looking for is an ability to run camel-karavan
locally with custom components. If there is such a documentation, that would help a lot.
Reply from @mgubaidullin allowed to go further, though the step
cd karavan-app
mvn quarkus:dev
failed with
2022-12-08 12:42:15,557 ERROR [org.apa.cam.kar.ser.KubernetesService] (vert.x-worker-thread-2) Error starting informers: An error has occurred.
2022-12-08 12:42:15,558 ERROR [org.apa.cam.kar.ser.ImportService] (vert.x-worker-thread-0) Error during project import: io.fabric8.kubernetes.client.KubernetesClientException: Operation: [get] for kind: [Secret] with name: [karavan] in namespace: [null] failed.
at io.fabric8.kubernetes.client.KubernetesClientException.launderThrowable(KubernetesClientException.java:159)
at io.fabric8.kubernetes.client.dsl.base.BaseOperation.getMandatory(BaseOperation.java:189)
at io.fabric8.kubernetes.client.dsl.base.BaseOperation.get(BaseOperation.java:151)
at io.fabric8.kubernetes.client.dsl.base.BaseOperation.get(BaseOperation.java:83)
at org.apache.camel.karavan.service.KubernetesService.getKaravanSecret(KubernetesService.java:331)
at org.apache.camel.karavan.service.KubernetesService_Subclass.getKaravanSecret$$superforward1(Unknown Source)
at org.apache.camel.karavan.service.KubernetesService_Subclass$$function$$4.apply(Unknown Source)
at io.quarkus.arc.impl.AroundInvokeInvocationContext.proceed(AroundInvokeInvocationContext.java:54)
I'm looking for a bare minimum to see, whether it can be run locally and whether I can add custom Camel Component or Kamelets
Karavan App aimed to run inside Kubernetes and build+deploy integrations using Tekton Pipelines. Karavan VSCode extension runs locally to support local development environment.
As for now Karavan uses Kamelets and Components from Apache Community. Custom Component are not yet supported. However we support custom Kamelets, so you could create a custom Kamelet around your component and put it in custom Kamelet folder (configured in vscode Karavan settings)
Thank you @mgubaidullin. Is there a chance that there is the instruction on how to properly build VSCode extension exists? Just checked extension config, there is Custom Kamelets Path
indeed.
Though not much luck with extension so far - the Kamelet
and Component
catalogs are empty in my case
Though not much luck with extension so far - the Kamelet and Component catalogs are empty in my case
I've managed to overcome this problem, I believe by executing the following from instructions
mvn clean compile exec:java -Dexec.mainClass="org.apache.camel.karavan.generator.KaravanGenerator" -f karavan-generator
... will try once again
To add custom Kamelet you don't need to build Karavan. Just install it from the Marketplace and put you custom Kamelets in the folder configured
If you want to build Karavan VS Code extension, the best way is to follow github action: https://github.com/apache/camel-karavan/blob/main/.github/workflows/vscode.yml
Thank you @mgubaidullin, this answers my questions
For all people who want to do that on windows, one has to add "
around exec.mainClass
, otherwise maven will only produce build failures:
mvn exec:java -D"exec.mainClass"="org.apache.camel.karavan.generator.KaravanGenerator" -f .\karavan-generator
Going through the steps in https://github.com/apache/camel-karavan/blob/main/DEV.md down to
Getting