Geant4 unfortunately does not provide compiled packages. Here, a Docker container with the required dependencies is created that will compile and build Geant4 deb packages for Ubuntu 20.04 LTS (focal). This is useful for testing Geant4 applications (like G4Horus) on CI Systems like Github Actions and Travis-CI.
- Docker on any host operating system
docker build -t geant4-builder .
docker run --rm -v $(pwd):/io -e G4=geant4.10.05.p01 geant4-builder
docker run --rm -v $(pwd):/io -e G4=geant4.10.06.p03 geant4-builder
docker run --rm -v $(pwd):/io -e G4=geant4.10.07.p01 geant4-builder
Note: To use the run.ps1 script, you'll need to enable scripts first - or just run the commands manually
docker build -t geant4-builder .
docker run --rm -v ${PWD}:/io -e G4=geant4.10.05.p01 geant4-builder
docker run --rm -v ${PWD}:/io -e G4=geant4.10.06.p03 geant4-builder
docker run --rm -v ${PWD}:/io -e G4=geant4.10.07.p01 geant4-builder