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

Docker problem: Error: Unable to access jarfile lib/lookup-service-0.2-SNAPSHOT-onejar.jar #87

Open
cboulanger opened this issue Feb 17, 2023 · 1 comment

Comments

@cboulanger
Copy link

This is probably for @lfoppiano ?

I am trying to build/run the Docker images with docker compose up . The build process works but I get Error: Unable to access jarfile lib/lookup-service-0.2-SNAPSHOT-onejar.jar in the "biblio-1" container, which won't start. I am using Windows Docker Desktop with the WSL2 backend.

The other question would be how to make biblio-glutton use a running Grobid container which is newer. Just not start the embedded Grobid container?

Thank you.

@lfoppiano
Copy link
Collaborator

lfoppiano commented Feb 20, 2023

Dear @cboulanger, thank you for reporting the issue.

I am trying to build/run the Docker images with docker compose up . The build process works but I get Error: Unable to access jarfile lib/lookup-service-0.2-SNAPSHOT-onejar.jar in the "biblio-1" container, which won't start. I am using Windows Docker Desktop with the WSL2 backend.

In the Dockerfile's last line there is the command which is ran to start the service, as far as I see the JAR will be built without the suffix -SNAPSHOT, so you could fix it by removing it, if I'm not mistaken, the line should look like:

CMD java -jar lib/lookup-service-0.2-onejar.jar server data/config/config.yml

The other question would be how to make biblio-glutton use a running Grobid container which is newer. Just not start the embedded Grobid container?

You could update the corresponding line in the docker-compose.xml to 0.7.2

FYI: there is pending PR #27 which should fix some problems with the docker compose, and add some documentation. if you have some additional time, you could give it a try too.

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

No branches or pull requests

2 participants