Error: Invalid or corrupt jarfile /app/app.jar
Following the steps to run sample-docker: https://github.com/citrusframework/citrus-samples/tree/master/sample-docker/java-dsl
I was ok up until mvn docker:start
This is what I'm seeing: [INFO] --- docker-maven-plugin:0.26.0:start (default-cli) @ citrus-java-sample-docker --- [INFO] DOCKER> [citrusframework/todo-demo-app:1.1.0] "todo-app": Start container 5f93a0f729f4 [INFO] DOCKER> [citrusframework/todo-demo-app:1.1.0] "todo-app": Waiting on url http://localhost:8080/todolist with method GET for status 200. 11:17:18.304 todo-app> Error: Invalid or corrupt jarfile /app/app.jar Error: Invalid or corrupt jarfile /app/app.jar 5f93a0Error: Invalid or corrupt jarfile /app/app.jar [ERROR] DOCKER> [citrusframework/todo-demo-app:1.1.0] "todo-app": Container stopped with exit code 1 unexpectedly after 801 ms while waiting on url http://localhost:8080/todolist [ERROR] DOCKER> Error occurred during container startup, shutting down...
Hi!
Sorry for the late response.
It seems like the provided docker image citrusframework/todo-demo-app:1.1.0 for the todo-app on docker-hub is corrupted. Therefore the sample does not work.
I'll convert this issue from a question to a bug. Thx for reporting this problem.
BR, Sven
I confirm that the Docker image citrusframework/todo-demo-app:1.1.0 is not working due to that issue. I have changed the docker sample to use a local docker images that is built within the sample-todo-app module. You can build the image locally with:
mvn -pl :citrus-sample-todo clean install docker:build
After that you should be able to use the Docker sample.
@svettwer I think we can close this one