open-AIMS / ReefGuideAPI.jl

API for Reef Guidance and Assessment
MIT License
1 stars 0 forks source link

Docker build with Julia 1.11 is slow #40

Open arlowhite opened 3 weeks ago

arlowhite commented 3 weeks ago

docker build . --target reefguide-src -t reefguide_1_10 --no-cache Julia 1.10 build took 5m22s Julia 1.11 build took 18m22s

Toward the end of the 1.11 build, these warnings are printed for every package. (not in 1.10)

Warning: Module StaticArrays with build ID ffffffff-ffff-ffff-0000-46a203311587 is missing from the cache. This may mean StaticArrays [90137ffa-7385-5640-81b9-e52037218182] does not support precompilation but is imported by a module that does.

Fix this issue and update containers to use Julia 1.11

pascal082 commented 2 weeks ago

Fixed on 47584a2

Optimised Docker build time from 18m to 8.17m by precompiling MKL_jll and IntelOpenMP artifacts, resolving warnings and reducing startup load, and added gdal-bin, libgdal-dev, and libfftw3-dev for required geospatial dependencies