<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" id="owaParaStyle">P {margin-top:0;margin-bottom:0;</style>
</head>
<body class="" style="word-wrap:break-word; line-break:after-white-space" fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">
<div>Dear Maxime, dear gate-users,</div>
<div><br>
</div>
<div>It's me again.. I would like to know if it is possible to run the Gate container non-interactively. In order to run Gate, first one needs to get into the container using:<font face="Courier, monospace"><font style="font-size: 8pt" size="1"><br>
</font></font></div>
<div><font face="Courier, monospace"><font style="font-size: 8pt" size="1"><br>
</font></font></div>
<div><font face="Courier, monospace"><font style="font-size: 8pt" size="1">docker run -it opengatecollaboration/gate:latest bash</font></font></div>
<div><style type="text/css">td p { margin-bottom: 0in; }p { margin-bottom: 0.1in; line-height: 120%; }a:link { }</style></div>
<div><br>
</div>
<div>Then environmental variables:</div>
<div>
<p align="justify"><font face="Courier, monospace"><font style="font-size: 8pt" size="1">source /root/.bashrc</font></font></p>
<style type="text/css">td p { margin-bottom: 0in; }p { margin-bottom: 0.1in; line-height: 120%; }a:link { }</style></div>
<div>
<div>Then one can run Gate. But what if I want to run Gate directly:</div>
<div><br>
</div>
<div><font face="Courier, monospace"><font style="font-size: 8pt" size="1">docker run -it opengatecollaboration/gate:latest Gate</font></font></div>
</div>
<div><style type="text/css">td p { margin-bottom: 0in; }p { margin-bottom: 0.1in; line-height: 120%; }a:link { }BODY {scrollbar-base-color:undefined;scrollbar-highlight-color:undefined;scrollbar-darkshadow-color:undefined;scrollbar-track-color:undefined;scrollbar-arrow-color:undefined}BODY {scrollbar-base-color:undefined;scrollbar-highlight-color:undefined;scrollbar-darkshadow-color:undefined;scrollbar-track-color:undefined;scrollbar-arrow-color:undefined}</style></div>
<div><br>
</div>
<div>I am new to containers.. hopefully my question makes sense :)</div>
<div><br>
</div>
<div>Thank you and kind regards,</div>
<div>Parisa<br>
</div>
<div><font size="2" face="Tahoma" color="#000000"><b>--------------------------------------------------------------<br>
</b></font></div>
<div><font size="2" face="Tahoma" color="#000000"><b>From:</b> Maxime Chauvin [maxime.chauvin@inserm.fr]</font></div>
<div id="divRplyFwdMsg"><font size="2" face="Tahoma" color="#000000"><b>Sent:</b> 22 October 2018 17:46<br>
<b>To:</b> Parisa Khateri<br>
<b>Subject:</b> Re: [Gate-users] GATE Docker container now available !<br>
</font><br>
</div>
<div></div>
<div>Good news !
<div class=""><br class="">
</div>
<div class="">You’re welcome,</div>
<div class="">  Maxime<br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On 22 Oct 2018, at 16:54, Parisa Khateri <<a href="mailto:parisa.khateri@cern.ch" class="" target="_blank" rel="noopener noreferrer">parisa.khateri@cern.ch</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="" style="font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; direction:ltr; font-family:Tahoma; font-size:10pt">
<div class="">Dear Maxime,</div>
<div class=""><br class="">
</div>
<div class="">The error was:</div>
<div class=""><br class="">
</div>
<div class=""><font class="" face="Courier New">Error R__unzip_header: error in header<br class="">
Info in <TFile::GetStreamerInfoList>: cannot find the StreamerInfo record in file /home/pkhateri/Desktop/rootfile1.root<br class="">
</font><br class="">
</div>
<div class="">Anyway, I found that the problem was due to the root version. I installed the new version of ROOT on my computer and it can successfully open the root file that was generated by the new version of Gate & ROOT.</div>
<div class=""><br class="">
</div>
<div class="">Thank you again and kind regards,</div>
<div class="">Parisa<br class="">
</div>
<div class="" style="font-family:"Times New Roman"; font-size:16px">
<hr tabindex="-1" class="">
<div id="divRpF380242" class="" style="direction:ltr"><font class="" size="2" face="Tahoma"><b class="">From:</b><span class="Apple-converted-space"> </span>Maxime Chauvin [<a href="mailto:maxime.chauvin@inserm.fr" class="" target="_blank" rel="noopener noreferrer">maxime.chauvin@inserm.fr</a>]<br class="">
<b class="">Sent:</b><span class="Apple-converted-space"> </span>22 October 2018 15:53<br class="">
<b class="">To:</b><span class="Apple-converted-space"> </span>Parisa Khateri<br class="">
<b class="">Cc:</b><span class="Apple-converted-space"> </span><a href="mailto:gate-users@lists.opengatecollaboration.org" class="" target="_blank" rel="noopener noreferrer">gate-users@lists.opengatecollaboration.org</a><br class="">
<b class="">Subject:</b><span class="Apple-converted-space"> </span>Re: [Gate-users] GATE Docker container now available !<br class="">
</font><br class="">
</div>
<div class=""></div>
<div class="">Dear Parisa,
<div class=""><br class="">
</div>
<div class="">which error do you get when trying to open it on your laptop ?<br class="">
<div class=""><br class="">
</div>
<div class="">Kind regards,</div>
<div class="">  Maxime</div>
<div class=""><br class="">
<blockquote type="cite" class="">
<div class="">On 22 Oct 2018, at 14:34, Parisa Khateri <<a href="mailto:parisa.khateri@cern.ch" class="" rel="noopener noreferrer" target="_blank">parisa.khateri@cern.ch</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="" style="font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; direction:ltr; font-family:Tahoma; font-size:10pt">
<div class="">Dear Maxime,</div>
<div class=""><br class="">
</div>
<div class="">Thank you for your reply.</div>
<div class=""><br class="">
</div>
<div class="">Actually, I tried to open the file with Root v6-08-06 installed on my laptop. But it also failed there. I thought the reason was the difference in the versions. Because the Root version in the container is 6.1/02. Do you think this could be reason?</div>
<div class=""><br class="">
</div>
<div class="">I pulled the Gate container on an HPC. I cannot install those packages in there.</div>
<div class=""><br class="">
</div>
<div class="">Kind regards,</div>
<div class="">Parisa</div>
<div class="" style="font-family:"Times New Roman"; font-size:16px">
<hr tabindex="-1" class="">
<div id="divRpF634189" class="" style="direction:ltr"><font class="" size="2" face="Tahoma"><b class="">From:</b><span class="Apple-converted-space"> </span>Maxime Chauvin [<a href="mailto:maxime.chauvin@inserm.fr" class="" rel="noopener noreferrer" target="_blank">maxime.chauvin@inserm.fr</a>]<br class="">
<b class="">Sent:</b><span class="Apple-converted-space"> </span>19 October 2018 16:58<br class="">
<b class="">To:</b><span class="Apple-converted-space"> </span>Parisa Khateri<br class="">
<b class="">Cc:</b><span class="Apple-converted-space"> </span>Joćo Marcos;<span class="Apple-converted-space"> </span><a href="mailto:gate-users@lists.opengatecollaboration.org" class="" rel="noopener noreferrer" target="_blank">gate-users@lists.opengatecollaboration.org</a><br class="">
<b class="">Subject:</b><span class="Apple-converted-space"> </span>Re: [Gate-users] GATE Docker container now available !<br class="">
</font><br class="">
</div>
<div class=""></div>
<div class="">Dear Parisa,
<div class=""><br class="">
</div>
<div class="">ROOT needs some packages to be installed on the system if you want to use more than its libraries.</div>
<div class="">You can install them using this command:</div>
<span class="">yum -y install libX11-devel libXpm-devel libXft-devel libXext-devel<br class="">
</span><span class=""><br class="">
</span>
<div class="">But keep in mind that the docker container is intended for computing, not for data analysis or visualisation.</div>
<div class="">
<div class=""><br class="">
</div>
<div class="">Kind regards,</div>
<div class="">  Maxime Chauvin</div>
<div class=""><br class="">
<blockquote type="cite" class="">
<div class="">On 19 Oct 2018, at 15:47, Parisa Khateri <<a href="mailto:parisa.khateri@cern.ch" class="" rel="noopener noreferrer" target="_blank">parisa.khateri@cern.ch</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="" style="font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; direction:ltr; font-family:Tahoma; font-size:10pt">
<div class="">Dear Maxime, dear Joao,<br class="">
</div>
<div class=""><br class="">
</div>
<div class="">I tried to pull it on a HPC using shifter (instead of Docker). Then I ran a simple Gate simulation without an error but when I attempt to run root to open the simulation root file I get this error:</div>
<div class=""><br class="">
</div>
<div class=""><font class="" face="Courier New">root: error while loading shared libraries: libSM.so.6: cannot open shared object file: No such file or directory</font><br class="">
<br class="">
</div>
<div class="">I checked and found this library doesn't exist in the /cern/root-install/lib/ directory.<span class="Apple-converted-space"> </span><br class="">
</div>
<div class="">Could it be because of an inappropriate installation?</div>
<div class=""><br class="">
</div>
<div class="">Thank you and kind regards,</div>
<div class="">Parisa<br class="">
</div>
<div class=""><br class="">
</div>
<div class="" style="font-family:"Times New Roman"; font-size:16px">
<hr tabindex="-1" class="">
<div id="divRpF227275" class="" style="direction:ltr"><font class="" size="2" face="Tahoma"><b class="">From:</b><span class="Apple-converted-space"> </span>Gate-users [<a href="mailto:gate-users-bounces@lists.opengatecollaboration.org" class="" rel="noopener noreferrer" target="_blank">gate-users-bounces@lists.opengatecollaboration.org</a>]
 on behalf of Joćo Marcos [<a href="mailto:joao.marcos@coimbra.lip.pt" class="" rel="noopener noreferrer" target="_blank">joao.marcos@coimbra.lip.pt</a>]<br class="">
<b class="">Sent:</b><span class="Apple-converted-space"> </span>17 September 2018 12:50<br class="">
<b class="">To:</b><span class="Apple-converted-space"> </span>Maxime Chauvin<br class="">
<b class="">Cc:</b><span class="Apple-converted-space"> </span><a href="mailto:gate-users@lists.opengatecollaboration.org" class="" rel="noopener noreferrer" target="_blank">gate-users@lists.opengatecollaboration.org</a><br class="">
<b class="">Subject:</b><span class="Apple-converted-space"> </span>Re: [Gate-users] GATE Docker container now available !<br class="">
</font><br class="">
</div>
<div class=""></div>
<div class="">
<pre class="">Dear Maxime,</pre>
<pre class=""><br class=""></pre>
<pre class="">I followed your instructions and I got my first Gate installation successfully.</pre>
<pre class="">This docker approach seems to be very useful.</pre>
<pre class=""><br class=""></pre>
<pre class="">Thank you very much.</pre>
<pre class="">Best regards,</pre>
<pre class="">Joćo Marcos</pre>
<pre class=""> </pre>
<pre class="">On Wed, 22 Aug 2018 15:24:03 +0200, Maxime Chauvin
 wrote:
> Dear gate-users,

> GATE is now available as a Docker container:
> <a href="https://hub.docker.com/r/opengatecollaboration/gate/" class="" rel="noopener noreferrer" target="_blank">https://hub.docker.com/r/opengatecollaboration/gate/</a>


> A Docker container is a bit like a small virtual machine that is created
> for one job and then destroyed. It is fast to deploy, very robust and
> perfect for production on a cluster.
> More information on Docker containers here:
> <a href="https://www.docker.com/resources/what-container" class="" rel="noopener noreferrer" target="_blank">https://www.docker.com/resources/what-container</a>


> As a simple example, to launch GATE within a Docker container:
> install the Docker app <a href="https://www.docker.com/products/docker-desktop" class="" rel="noopener noreferrer" target="_blank">https://www.docker.com/products/docker-desktop</a>

> run in a terminal 'docker run -it opengatecollaboration/gate’
> run ‘Gate'
> Best regards,
>   Maxime Chauvin</pre>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
</body>
</html>