[Gate-users] Run local script in docker container

Franck Vidal franck.p.vidal at gmail.com
Thu Jun 17 11:17:21 CEST 2021


Hi all,

I am trying to run the latest version of Gate from the docker container.
On the host, the macros are in the working directory.
I use the command as follows:

$ docker run -v $PWD:/mnt/mydata --workdir="/mnt/mydata" -it
opengatecollaboration/gate /mnt/mydata/Benchmark.mac

I get this error:

-------- EEEE ------- G4Exception-START -------- EEEE -------
*** G4Exception : GateMDBFile
      issued by : GateMDBFile::GateMDBFile
Could not find material database file './GateMaterials.db'
*** Fatal Exception *** core dump ***
[G4-cerr]  **** Track information is not available at this moment
[G4-cerr]  **** Step information is not available at this moment
[G4-cerr]
-------- EEEE -------- G4Exception-END --------- EEEE -------

However GateMaterials.db is in my working directory.


When I changed all the occurrences of "./" into "/mnt/mydata" (which is far
from ideal), I get the error as follows:

[Core-0] Starting macro /mnt/mydata/Benchmark.mac
I/O warning : failed to load external entity "./Materials.xml"
I/O warning: Discard the previous warning if your simulation doesn't
transport OPTICAL PHOTONS.
Otherwise, please copy the ./Materials.xml file from the gate-source
directory in the directory where you run your main macro.
I/O warning : failed to load external entity "./Materials.xml"
I/O warning: Discard the previous warning if your simulation doesn't
transport OPTICAL PHOTONS.
Otherwise, please copy the ./Materials.xml file from the gate-source
directory in the directory where you run your main macro.
GateMaterialDatabase.cc (l.174): GateMaterialDatabase: could not find the
definition for material 'Silicon' in material files

Any help will be welcome,

best regards,

Franck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20210617/f3a65e61/attachment.html>


More information about the Gate-users mailing list