-
Notifications
You must be signed in to change notification settings - Fork 41
Please add a maven cache #586
Comments
The ols-indexer alone took 461s:
|
I don't know why but adding the cache causes an error:
Maybe this is an unrelated problem that didn't show up before? However I don't understand why it doesn't occur when not using the cache.
I guess that mounting the cache will overwrite the build fix, however we can't reorder those two statements because then the build fix would be applied to late. |
Trying this:
This works and gets the build of ols-indexer with existing maven cache down to 24.6 s on an Intel Core i7-9700 :
Parallelizing Maven with 1 Thread per CPU (8 cores no hyperthreading on Intel Core i7-9700) via However with ols-web there is an error:
But due to the clipped output I don't know the reason. On the next try it worked in a complete docker compose setup so I enabled it again for ols-we, which brings the compile time of that component down to around 30-40s. |
Update: This version was unnecessarily building components separately and thus building dependencies multiple times. A more efficient approach is to just build everything at once in a separate container and put all the jars in a volume. |
Compiling the different OLS components takes several minutes, mostly due to downloading maven dependencies.
This could be drastically sped up by caching maven dependencies, for example by mounting a local ~/.m2 directory or some cache volume.
Right now, building everything on the unified docker compose branch, annosaxfdm@d3bb1d8
docker-compose --no-cache
takes more than 400s.The text was updated successfully, but these errors were encountered: