Skip to content

Add compiled packages to docker #18

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

Closed
wants to merge 11 commits into from

Conversation

danlooo
Copy link
Collaborator

@danlooo danlooo commented Feb 3, 2025

This PR aims to use precompiled versions of RQADeforestation and julia produced by PackageCompiler.jl .
This will reduce startup time by skipping the precompiling step.

Benchmark

Startup time

time docker run danlooo/fairsendd:a182dee45ca21fd3971af6bd65a336450aa9fc0e --help
commit time to help command [s] image size [mB]
a182dee 470 1170
c123993 1.348 513

see EarthyScience/RQADeforestation.jl#53
see EarthyScience/RQADeforestation.jl#54
see EarthyScience/RQADeforestation.jl#55

@danlooo
Copy link
Collaborator Author

danlooo commented Feb 3, 2025

❯ time docker run danlooo/fairsendd:c1239930eefa9d4769055a5a164783f412e5929b --help
fatal: error thrown and no exception handler available.
InitError(mod=:OpenSpecFun_jll, error=ErrorException("Artifact \"OpenSpecFun\" was not found by looking in the path \"/usr/share/julia/artifacts/09b351e89a85e07e957194a647765403d4ee1bcb\". Try `using Pkg; Pkg.instantiate()` to re-install all missing resources if the artifact is part of a package or call `Pkg.ensure_artifact_installed` (https://pkgdocs.julialang.org/v1/api/#Pkg.Artifacts.ensure_artifact_installed) if not."))
error at ./error.jl:35
_artifact_str at /usr/local/julia/share/julia/stdlib/v1.11/Artifacts/src/Artifacts.jl:588
jfptr__artifact_str_159367.1 at /usr/lib/julia/sys.so (unknown line)
jl_apply at /cache/build/builder-demeter6-3/julialang/julia-release-1-dot-11/src/julia.h:2157 [inlined]
jl_f__call_latest at /cache/build/builder-demeter6-3/julialang/julia-release-1-dot-11/src/builtins.c:875
#invokelatest#2 at ./essentials.jl:1055 [inlined]
invokelatest at ./essentials.jl:1052 [inlined]
macro expansion at /usr/local/julia/share/julia/stdlib/v1.11/Artifacts/src/Artifacts.jl:717 [inlined]
find_artifact_dir at /.julia/packages/JLLWrappers/GfYNv/src/wrapper_generators.jl:17 [inlined]
__init__ at /.julia/packages/OpenSpecFun_jll/4QIOW/src/wrappers/x86_64-linux-gnu-libgfortran5.jl:8
jfptr___init___163903.1 at /usr/lib/julia/sys.so (unknown line)
jl_apply at /cache/build/builder-demeter6-3/julialang/julia-release-1-dot-11/src/julia.h:2157 [inlined]
jl_module_run_initializer at /cache/build/builder-demeter6-3/julialang/julia-release-1-dot-11/src/toplevel.c:76
_finish_julia_init at /cache/build/builder-demeter6-3/julialang/julia-release-1-dot-11/src/init.c:902
julia_init at /cache/build/builder-demeter6-3/julialang/julia-release-1-dot-11/src/init.c:843
ijl_init_with_image at /cache/build/builder-demeter6-3/julialang/julia-release-1-dot-11/src/jlapi.c:96 [inlined]
ijl_init_with_image at /cache/build/builder-demeter6-3/julialang/julia-release-1-dot-11/src/jlapi.c:85
ijl_init at /cache/build/builder-demeter6-3/julialang/julia-release-1-dot-11/src/jlapi.c:118
main at RQADeforestation (unknown line)
unknown function (ip: 0x7fe67d85c249)
__libc_start_main at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
_start at RQADeforestation (unknown line)

@danlooo
Copy link
Collaborator Author

danlooo commented Feb 4, 2025

This docker container only contains RQADeforestation.jl data.
Moved to EarthyScience/RQADeforestation.jl#68

@danlooo danlooo closed this Feb 4, 2025
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

Successfully merging this pull request may close these issues.

1 participant