kermitt2 / biblio-glutton

A high performance bibliographic information service: https://biblio-glutton.readthedocs.io
117 stars 15 forks source link

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

Open cboulanger opened 1 year ago

cboulanger commented 1 year ago

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 commented 1 year ago

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.