Open ocaisa opened 1 year ago
That's a good idea, and I've actually done that with a similar build container for our local CVMFS-based stack, but you have to be really careful w.r.t. which items you want/can reuse in the container. For instance, at some point I was reusing the proxy that was defined on our compute nodes, but the proxy was only configured for another CVMFS-based project, leading to confusing errors inside the container.
Maybe the easiest thing is to just add a flag (which is not set by default) that does this blindly (or bind mounts a custom configuration file)
The eessi_container.sh
script could be improved by allowing different ways to specify the target repository:
--repository EESSI-pilot
), e.g., --repository container[:repo_name]
--repository host[:repo_name]
and the script generates a repos.cfg
and additional cfg data on the fly OR /etc/cvmfs
is simply mapped into the container (for example, if no :repo_name
was provided)ext:
), e.g., --repository ext[:repo_id]
and repo_id
is defined in another file repos.cfg
IF a CVMFS configuration exists on the node being used for the build container, it should be used by the container as well