Unable to build - Camunda Modeler Migration tool

Hi @jonathan.lukas ,
I just followed this github link, but I am getting this error.
Could you please help me out ?

[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running org.camunda.community.migration.adapter.CamundaPlatform7AdapterTest
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.657 s <<< FAILURE! – in org.camunda.community.migration.adapter.CamundaPlatform7AdapterTest
[ERROR] org.camunda.community.migration.adapter.CamundaPlatform7AdapterTest – Time elapsed: 0.657 s <<< ERROR!
java.lang.IllegalStateException: Could not find a valid Docker environment. Please see logs and check configuration
at org.testcontainers.dockerclient.DockerClientProviderStrategy.lambda$getFirstValidStrategy$7(DockerClientProviderStrategy.java:276)
at java.base/java.util.Optional.orElseThrow(Optional.java:403)
at org.testcontainers.dockerclient.DockerClientProviderStrategy.getFirstValidStrategy(DockerClientProviderStrategy.java:267)
at org.testcontainers.DockerClientFactory.getOrInitializeStrategy(DockerClientFactory.java:150)
at org.testcontainers.DockerClientFactory.client(DockerClientFactory.java:191)
at org.testcontainers.DockerClientFactory$1.getDockerClient(DockerClientFactory.java:104)
at com.github.dockerjava.api.DockerClientDelegate.authConfig(DockerClientDelegate.java:109)
at org.testcontainers.containers.GenericContainer.start(GenericContainer.java:321)
at io.camunda.zeebe.spring.test.ZeebeTestExecutionListener.beforeTestClass(ZeebeTestExecutionListener.java:28)
at org.springframework.test.context.TestContextManager.beforeTestClass(TestContextManager.java:206)
at org.springframework.test.context.junit.jupiter.SpringExtension.beforeAll(SpringExtension.java:113)
at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$invokeBeforeAllCallbacks$12(ClassBasedTestDescriptor.java:395)
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.invokeBeforeAllCallbacks(ClassBasedTestDescriptor.java:395)
at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.before(ClassBasedTestDescriptor.java:211)
at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.before(ClassBasedTestDescriptor.java:84)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:148)
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155)
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:35)
at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57)
at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:54) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:147)
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:127)
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:90)
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.lambda$execute$0(EngineExecutionOrchestrator.java:55)
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.withInterceptedStreams(EngineExecutionOrchestrator.java:102)
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:54)
at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:114)
at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:86)
at org.junit.platform.launcher.core.DefaultLauncherSession$DelegatingLauncher.execute(DefaultLauncherSession.java:86)
at org.apache.maven.surefire.junitplatform.LazyLauncher.execute(LazyLauncher.java:56)
at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.execute(JUnitPlatformProvider.java:184)
at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invokeAllTests(JUnitPlatformProvider.java:148)
at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invoke(JUnitPlatformProvider.java:122)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:385)
at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162)
at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:507)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:495)

[INFO] Running org.camunda.community.migration.adapter.execution.variable.VariableTypingRuleTest
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.242 s – in org.camunda.community.migration.adapter.execution.variable.VariableTypingRuleTest
[INFO] Running org.camunda.community.migration.adapter.externalTask.JobClientExternalTaskServiceTest
Java HotSpot™ 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended
[INFO] Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.519 s – in org.camunda.community.migration.adapter.externalTask.JobClientExternalTaskServiceTest
[INFO] Running org.camunda.community.migration.adapter.externalTask.JobWrappingExternalTaskTest
[INFO] Tests run: 35, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.188 s – in org.camunda.community.migration.adapter.externalTask.JobWrappingExternalTaskTest
[INFO] Running org.camunda.community.migration.adapter.ExternalTaskHandlerWrapperTest
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.078 s – in org.camunda.community.migration.adapter.ExternalTaskHandlerWrapperTest
[INFO] Running org.camunda.community.migration.adapter.worker.CamundaPlatform7DelegationWorkerTest
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.127 s – in org.camunda.community.migration.adapter.worker.CamundaPlatform7DelegationWorkerTest
[INFO]
[INFO] Results:
[INFO]
[ERROR] Errors:
[ERROR] CamundaPlatform7AdapterTest » IllegalState Could not find a valid Docker environment. Please see logs and check configuration
[INFO]
[ERROR] Tests run: 48, Failures: 0, Errors: 1, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for camunda-7-to-8-migration 0.7.1-SNAPSHOT:
[INFO]
[INFO] camunda-7-to-8-migration … SUCCESS [ 1.482 s]
[INFO] camunda-7-adapter … FAILURE [ 8.475 s]
[INFO] backend-diagram-converter-parent … SKIPPED
[INFO] backend-diagram-converter-core … SKIPPED
[INFO] backend-diagram-converter-webapp … SKIPPED
[INFO] backend-diagram-converter-cli … SKIPPED
[INFO] process-instance-migration … SKIPPED
[INFO] test-example-diagrams … SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10.252 s
[INFO] Finished at: 2023-12-03T19:49:12+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.2.2:test (default-test) on project camunda-7-adapter:
[ERROR]
[ERROR] Please refer to C:\vinoth\natwest\camunda-7-to-8-migration-main\camunda-7-adapter\target\surefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
[ERROR] → [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] MojoFailureException - Apache Maven - Apache Software Foundation
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :camunda-7-adapter

Hello @vinothkumar ,

to build the tool yourself, you require a docker environment (as zeebe tests are running on docker)

If you require the cli tool, you can find it in the release attachments. The webapp can be run directly as the built images are pushed to ghcr

I hope this helps

Jonathan

@jonathan.lukas
Can you plz give me the release link where I can download. I have to run without docker. Could you please help me on this

Hello @vinothkumar ,

the link is:

Jonathan

@jonathan.lukas
Thanks for your quick help. Its working as expected.

1 Like

Hi @jonathan.lukas ,
i’ve just got the same error, when trying to compile for Apple Silicon (M2).
Have to do this because there’s only an amd64 docker image actually.
I have colima installed that directly replaces docker on M2 (same commands, etc…).

So my question would be:
What to set or where to adjust the building process to get that image built?
As workaround I skipped the tests (because depend on other docker Intel image) but afterall I only could identify a jar not a docker image for the diagram converter :face_with_diagonal_mouth:

Is there any easy approach or should that better result in an issue “Provide image for Apple Silicon” ?

Hi @asys3 ,

the repo contains images as well: Package camunda-7-to-8-migration/diagram-converter · GitHub

Are these images not compatible with M2?

The images are built by the spring-boot-maven plugin: camunda-7-to-8-migration/backend-diagram-converter/webapp/pom.xml at 413b97227f80d49ce413225c5a6d99153ac8dc74 · camunda-community-hub/camunda-7-to-8-migration · GitHub

This uses paketo: Getting Started - Paketo Buildpacks

As it seems, paketo does not (yet) support building images for arm64: Support ARM · Issue #435 · buildpacks/lifecycle · GitHub

Currently, the only obvious solution would be to move to another approach to build a docker image, for example: fabric8io/docker-maven-plugin

Jonathan