LuboTerifaj opened a new issue, #1967:
URL: https://github.com/apache/incubator-kie-kogito-examples/issues/1967

   ### Description
   
   There are several issues in [Serverless Workflow Temperature Conversion 
Example](https://github.com/apache/incubator-kie-kogito-examples/tree/stable/serverless-workflow-examples/serverless-workflow-temperature-conversion).
   
   #### Issues
   
   - There is a wrong URL: [CNCF Serverless Workflow 
specification](https://github.com/cncf/wg-serverless/tree/main/workflow/spec) 
in 
[readme](https://github.com/apache/incubator-kie-kogito-examples/blob/stable/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow/README.md)
 file.
   - If you run the application 
[conversion-workflow](https://github.com/apache/incubator-kie-kogito-examples/tree/stable/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow)
 in local devmode you will get the following error:
   ```
   ERROR [io.qua.dep.dev.IsolatedDevModeMain] (main) Failed to start quarkus: 
java.lang.RuntimeException: io.quarkus.builder.BuildException: Build failure: 
Build failed due to errors
           [error]: Build step 
org.kie.kogito.quarkus.serverless.workflow.deployment.ServerlessWorkflowDevServicesProcessor#startDataIndexDevService
 threw an exception: java.lang.RuntimeException: Failed to start Kogito Data 
Index Dev Services
           at 
org.kie.kogito.quarkus.workflow.deployment.AbstractDevServicesProcessor.startDataIndexDevService(AbstractDevServicesProcessor.java:129)
           at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
           at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           at java.base/java.lang.reflect.Method.invoke(Method.java:568)
           at 
io.quarkus.deployment.ExtensionLoader$3.execute(ExtensionLoader.java:849)
           at io.quarkus.builder.BuildContext.run(BuildContext.java:256)
           at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)
           at 
org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2513)
           at 
org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1538)
           at java.base/java.lang.Thread.run(Thread.java:840)
           at org.jboss.threads.JBossThread.run(JBossThread.java:501)
   Caused by: java.lang.RuntimeException: 
org.testcontainers.containers.ContainerFetchException: Can't get Docker image: 
RemoteDockerImage(imageName=docker.io/apache/incubator-kie-kogito-data-index-ephemeral:main,
 imagePullPolicy=DefaultPullPolicy(), 
imageNameSubstitutor=org.testcontainers.utility.ImageNameSubstitutor$LogWrappedImageNameSubstitutor@3ef16b0)
           at 
org.kie.kogito.quarkus.workflow.deployment.AbstractDevServicesProcessor.lambda$startDataIndex$2(AbstractDevServicesProcessor.java:203)
           at java.base/java.util.Optional.orElseGet(Optional.java:364)
           at 
org.kie.kogito.quarkus.workflow.deployment.AbstractDevServicesProcessor.startDataIndex(AbstractDevServicesProcessor.java:208)
           at 
org.kie.kogito.quarkus.workflow.deployment.AbstractDevServicesProcessor.startDataIndexDevService(AbstractDevServicesProcessor.java:119)
           ... 11 more
   Caused by: org.testcontainers.containers.ContainerFetchException: Can't get 
Docker image: 
RemoteDockerImage(imageName=docker.io/apache/incubator-kie-kogito-data-index-ephemeral:main,
 imagePullPolicy=DefaultPullPolicy(), 
imageNameSubstitutor=org.testcontainers.utility.ImageNameSubstitutor$LogWrappedImageNameSubstitutor@3ef16b0)
           at 
org.testcontainers.containers.GenericContainer.getDockerImageName(GenericContainer.java:1364)
           at 
org.testcontainers.containers.GenericContainer.doStart(GenericContainer.java:359)
           at 
org.testcontainers.containers.GenericContainer.start(GenericContainer.java:330)
           at 
org.kie.kogito.quarkus.workflow.deployment.AbstractDevServicesProcessor.lambda$startDataIndex$2(AbstractDevServicesProcessor.java:199)
           ... 14 more
   Caused by: com.github.dockerjava.api.exception.NotFoundException: Status 
404: {"message":"manifest for 
apache/incubator-kie-kogito-data-index-ephemeral:main not found: manifest 
unknown: manifest unknown"}
   
           at 
org.testcontainers.shaded.com.github.dockerjava.core.DefaultInvocationBuilder.execute(DefaultInvocationBuilder.java:241)
           at 
org.testcontainers.shaded.com.github.dockerjava.core.DefaultInvocationBuilder.lambda$executeAndStream$1(DefaultInvocationBuilder.java:269)
           at java.base/java.lang.Thread.run(Thread.java:840)
   
           at 
io.quarkus.runner.bootstrap.AugmentActionImpl.runAugment(AugmentActionImpl.java:334)
           at 
io.quarkus.runner.bootstrap.AugmentActionImpl.createInitialRuntimeApplication(AugmentActionImpl.java:251)
           at 
io.quarkus.runner.bootstrap.AugmentActionImpl.createInitialRuntimeApplication(AugmentActionImpl.java:60)
           at 
io.quarkus.deployment.dev.IsolatedDevModeMain.firstStart(IsolatedDevModeMain.java:112)
           at 
io.quarkus.deployment.dev.IsolatedDevModeMain.accept(IsolatedDevModeMain.java:433)
           at 
io.quarkus.deployment.dev.IsolatedDevModeMain.accept(IsolatedDevModeMain.java:55)
           at 
io.quarkus.bootstrap.app.CuratedApplication.runInCl(CuratedApplication.java:138)
           at 
io.quarkus.bootstrap.app.CuratedApplication.runInAugmentClassLoader(CuratedApplication.java:93)
           at io.quarkus.deployment.dev.DevModeMain.start(DevModeMain.java:131)
           at io.quarkus.deployment.dev.DevModeMain.main(DevModeMain.java:62)
   
   ```
   - When running 
[multiplication](https://github.com/apache/incubator-kie-kogito-examples/tree/stable/serverless-workflow-examples/serverless-workflow-temperature-conversion/multiplication-service)
 or 
[subtraction](https://github.com/apache/incubator-kie-kogito-examples/tree/stable/serverless-workflow-examples/serverless-workflow-temperature-conversion/subtraction-service)
 service, there is an error:
     - `ERROR [io.qua.run.Application] (main) Port 8080 seems to be in use by 
another process. Quarkus may already be running or the port is used by another 
application.`
     - The ports in example should be configured properly, or there should be a 
guide how to configure the ports.
     - Although it is mentioned in "Testing the Application" section, the port 
must be specified before you run the service, not after.
   - There is redundant '$' character is some commands in readme files
   
   
   
   ### Acceptance criteria
   The example can be run and it works as expected. The steps are properly 
documented in readme file.
   
   ### Implementation ideas
   
   _No response_


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to