Gate Docker scripts, Generate the image by running the Generate.sh
script
[optional if not done before]
systemctl start docker
login: docker login
[build and use]
- build:
docker build -t opengatecollaboration/geant4:11.2.1 -f DockerFileGeant --build-arg ROOT_Version=v6-24-06 --build-arg Geant4_Version=v11.2.1 .
- push:
docker push opengatecollaboration/geant4:$version
- interactive:
docker run -it --rm -v $PWD:/APP opengatecollaboration/geant4:$version /bin/bash
Where:
$version
is11.2.1
for gate9.4
[optional if not done before]
systemctl start docker
login: docker login
[build and use]
- build:
docker build -t opengatecollaboration/gate:9.4 -f DockerFileGate --build-arg Geant4_Version=opengatecollaboration/geant4:11.2.1 --build-arg Gate_Version=v9.4 .
- push:
docker push opengatecollaboration/gate:$version
- run command:
docker run -i --rm -v $PWD:/APP opengatecollaboration/gate:$version mac/main.mac
- interactive:
docker run -it --rm -v $PWD:/APP --entrypoint /bin/bash opengatecollaboration/gate:$version
You can just install docker and then create an alias in your configuration
echo "alias Gate='docker run -i --rm -v $PWD:/APP opengatecollaboration/gate:$version'" >> ~/.bashrc
Where:
$version=9.3