Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Invalid or corrupt jarfile /app/app.jar #32

Open
Joy603 opened this issue Jul 26, 2018 · 2 comments
Open

Error: Invalid or corrupt jarfile /app/app.jar #32

Joy603 opened this issue Jul 26, 2018 · 2 comments

Comments

@Joy603
Copy link

Joy603 commented Jul 26, 2018

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...

@svettwer
Copy link
Contributor

svettwer commented Nov 5, 2018

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

@christophd
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants