-
Notifications
You must be signed in to change notification settings - Fork 458
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 broken in current master #628
Comments
Yes, we would need to add a new task that creates the zip/tar file, which can be used for the docker, or we could modify the current docker builder to use the various jars (less clean). |
The quick fix is to set
The correct fix is to create a new task that would do that, and call this task when building the new docker image. I've spent some time already without managing to have it work. |
What about the following:
and that's it, no distribution for the simple
|
This would make each CI build at 40 minutes or more, so degrading a lot the interest of the CI. |
40 minutes seem to be a bit high, why do you think that? The build for #629 (https://travis-ci.org/github/kermitt2/grobid/builds/721804752) ran for for over 7 minutes without Docker and over 8 minutes with Docker (although no tests in that case). The main difference is that caching artefacts across builds would be more difficult. I believe one way of doing it if it seems worth it, is to push / pull layers of the image (as the cloud CI servers don't usually cache layers out of the box). I get more information on that (a colleague of mine used it for some project I believe). |
I am not sure what the motivation of changing it to |
You're right, a new build is much faster, I had 35mn for docker but it was with downloading gradle-6.5.1-all.zip and all the artefacts on maven central, and my internet connection is currently very slow. New build of the docker image takes less than 2mn with cached artefacts, so that could be indeed painless and well worth with cache. |
Regarding caching Docker layers, I asked my colleague @erkannt
For Travis CI:
|
Yes, it is generating the zip when you run |
ah yes I remember! At the same time, |
Yes that was before we migrated to gradle 6, I think with the install it was creating the zip file if I'm not wrong. Anyway, it seem that this change would fix this two issues in one go. So 👍. |
Running the Docker build is currently broken in
master
and also in0.6.1
(but not in0.6.0
).Command:
docker build .
Error:
This seems to be caused by 683804d which disabled the creation of the distribution zip.
Might be good to add the Docker build as part of the CI build.
/cc @lfoppiano
The text was updated successfully, but these errors were encountered: