On a multi-user Linux platform, you want to install a Julia environment once while it is being used by many users (possibly at the same time). One can create a central installation of a Julia environment by exploiting the JULIA_DEPOT_PATH environment variable, which therefore also provides a means to have multiple different Julia environments. Our problem is that Julia requires this JULIA_DEPOT_PATH to be a writeable location, in particular to create log files in a subdirectory logs, which are dependent on the user that uses the environment. However, on a multi-user platform, you want a separation between a centrally installed application and anything that is user or usage specific.
Therefore, we would like to specify a different location for logging files (and anything else that is user or usage specific). Setting JULIA_HISTORY to ~/.julia/logs didn’t work and we couldn’t find a way to make the location of the Julia environment at JULIA_DEPOT_PATH independent of what a specific user does. Perhaps the approach with JULIA_DEPOT_PATH isn’t the right approach. Any suggestions of how to fix this?
We are working with Julia 1.10.0