LDMX-Software / docker

Docker build context for developing and running ldmx-sw.
https://ldmx-software.github.io/docker/
GNU General Public License v3.0
1 stars 2 forks source link

83 support non 1023 custom geant4 builds out of the box #90

Closed EinarElen closed 9 months ago

EinarElen commented 9 months ago

This updates the container to do some additional work to be able to support Geant4 builds other than 10.2.3. See https://github.com/LDMX-Software/docker/issues/83

Based on the discussion in the issue, I have restored the original behavior of the Dockerfile (with ENV definitions for the Geant4 data directories). These are unset manually in the entrypoint if a custom Geant4 build is used. I've also documented some of the things you need to know if you want to use different versions of Geant4 (e.g. G4 11). I also added a setting that lets you manually point the G4 data directory if you need to (e.g. for multiple builds with one common place for the data to save space).

Lastly, to make real sure that this feature is never used accidentally, the entrypoint will warn if the environment variable is used (similar to how the LDMX-sw cmake config warns for non-container builds). It can be silenced by defining yet another environment variable :)

Check List

... The Hcal test took 88 seconds but that... probably is a different issue...

I also ran an EcalPN config.