[Gate-users] GATE Docker container now available

Maxime Chauvin maxime.chauvin at inserm.fr
Wed Oct 10 10:01:43 CEST 2018


Dear Michael,

I came across this problem, I am also running GATE in docker containers via HTCondor.
I didn’t know about the --login argument.

Try this in your this-job.sh (change the paths with yours):
#!/bin/sh
# set up environment variables
source /geant4/geant4.10.02.p02-install/bin/geant4.sh
export PATH=\$PATH:/gate/gate_v7.2-install/bin
# start
cd `dirname $0`
Gate this_macro.mac > run.log

Cheers,
  Maxime Chauvin

> On 9 Oct 2018, at 22:22, Miller, Michael <Michael.a.Miller at philips.com> wrote:
> 
> Dear gate-users,
>  
> I’ve been running Gate in the docker container and now want to use HT condor to schedule jobs.  When I run the gate container in scripts or manually, I mount a local drive for the gate output:
>  
>                 docker run -it --mount type=bind,source=/scratch-for-this-job,target=/scratch \
> opengatecollaboration/gate /scratch/this-job.sh
>  
> I start gate with the script /scratch-for-this-job/this-job.sh:
>                 #!/usr/bin/bash --login
>                 cd `dirname $0`
> Gate this_macro.mac
>  
> The “--login" is needed to ensure that the shell in the container finds Gate.  I’ve tried moving this to HT condor with this submit file:
> universe       = docker
> docker_image   = opengatecollaboration/gate
> executable     = /scratch-for-this-job‑/this-job.sh
> output         = docker-gate.out.$(ClusterID)-$(ProcID)
> error          = docker-gate.err.$(ClusterID)-$(ProcID)
> log            = docker-gate.log.$(ClusterID)-$(ProcID)
> queue
>  
> This fails with a  “Gate: command not found” error.  I think this is because the script is not starting as a login shell, even with the “--login" option. 
>  
> Can anyone provide an example of how they’ve used the docker universe with the  opengatecollaboration/gate?  Or have people been using the vanilla universe and managing directories separately from condor?
>  
> Thanks, Mike
> 
> The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message.
> _______________________________________________
> Gate-users mailing list
> Gate-users at lists.opengatecollaboration.org
> http://lists.opengatecollaboration.org/mailman/listinfo/gate-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20181010/9fd586c9/attachment-0001.html>


More information about the Gate-users mailing list