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 build hangs indefinitely #28

Open
jameshowison opened this issue Jul 28, 2023 · 3 comments
Open

Docker build hangs indefinitely #28

jameshowison opened this issue Jul 28, 2023 · 3 comments

Comments

@jameshowison
Copy link

Trying to build the image myself.

Docker hangs after

=> [stage-1 38/38] RUN ./gradlew clean assemble install --no-daemon --  390.8s
 => => # You can use '--warning-mode all' to show the individual deprecation wa
 => => # rnings and determine if they come from your own scripts or plugins.   
 => => # See https://docs.gradle.org/7.2/userguide/command_line_interface.html#
 => => # sec:command_line_warnings                                             
 => => # BUILD SUCCESSFUL in 4m 4s                                             
 => => # 15 actionable tasks: 15 executed    

The next command in the Dockerfile.software is

CMD ["sh", "-c", "java --add-opens java.base/java.lang=ALL-UNNAMED -jar build/libs/software-mentions-0.8.0-SNAPSHOT-onejar.jar server resources/config/config.yml"]

The instructions (on the README) say to build with:

docker build -t grobid/software-mentions:0.7.3-SNAPSHOT --build-arg GROBID_VERSION=0.7.3-SNAPSHOT --file Dockerfile.software .

I noted the discrepancy between 0.8.0-SNAPSHOT and 0.7.3-SNAPSHOT in the --build-arg and changed both on the commandline version. Sadly that didn't fix it :(

Any ideas?

@jameshowison
Copy link
Author

I commented out that line built the image, then I ran that line in the container. That command did all its tasks but then is waiting for something more. I think it's in some interactive mode?

@jameshowison
Copy link
Author

Oddly, this solved for me by removing --no-daemon so that line 141 reads RUN ./gradlew clean assemble install --stacktrace --info -x test

With that the gradlew command returns and doesn't sit idle. Opposite of what one might expect!

@lfoppiano
Copy link
Contributor

lfoppiano commented Nov 20, 2024

I proposed a PR #38 that updates the docker buils and add github actions for the automatic build

(We've got the same in Grobid and it's very handy to delegate this part to automation)

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