GEO-BON / bon-in-a-box-pipelines

BON in a Box 2.0 - Sampling optimisation and indicator pipelines
MIT License
10 stars 7 forks source link

Pinning Julia versions #114

Open gottacatchenall opened 11 months ago

gottacatchenall commented 11 months ago

This currently this instantiates the project at the root, but each script is run in the /scripts/<SCRIPT_NAME and uses that dir as the project by default. Easiest way around this would be to have Pkg.activate("/"), though there may be some long-term benefit in having individual Project.toml's for each script that are all installed when the Julia docker image is built

tpoisot commented 11 months ago

This currently this instantiates the project at the root, but each script is run in the /scripts/<SCRIPT_NAME and uses that dir as the project by default.

We can also install the required packaged in the container's default (@1.whatever) environment and only add the required packages to each script's Project.toml. When starting julia with --project, the default environment remains accessible.

gottacatchenall commented 10 months ago

I have added the scripts and made a version of instantiate that installs and precompiles and environment for each Julia script (right now only helloWorld.jl is on main)