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

Docker plugin will not include the built JAR in the image #951

Closed
jesuino opened this Issue May 26, 2018 · 2 comments

Comments

2 participants
@jesuino

jesuino commented May 26, 2018

Hi,

Looks like when we run docker:build the JAR with the app artifacts is not included in the image. Please see this project: https://github.com/jesuino/java-ml-projects/tree/748db8648eeb8ff39b39191b4a01d2bf89e18788

When I build the image I see the content but I can't find image-classifier-microservice,jar in the image directory (I use docker exec to check the image content), hence the image is working perfectly (great plugin, thanks), but my app is not starting.

Checking runt.sh I found the following:

APP_DIR=$ROOT_DIR/app
APP_CP=$APP_DIR/*.jar

Hence I think that a workaround is copy my JAR to target/image-classifier-microservice-bin/app and it works. Hence why I am not opening this on the fabric8 plugin.

Please let me know if I am missing something! I am sorry in advanced if I am doing something n00b 0_0

@bobmcwhirter

This comment has been minimized.

Contributor

bobmcwhirter commented May 26, 2018

@jesuino

This comment has been minimized.

jesuino commented May 26, 2018

Thanks, that made it! I knew I was missing something ^_^

@jesuino jesuino closed this May 26, 2018

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