<html dir="ltr"><head></head><body style="text-align:left; direction:ltr;"><div>Thanks Zach and Stefan for your help</div><div><br></div><div>Previously repository was in private mode (now they are public, a mistake…)</div><div><br></div><div>currently my scl_metapackage image fail on test: <a href="https://gitlab.com/jonathan-dlang/scl_metapackage/-/pipelines/172225000">https://gitlab.com/jonathan-dlang/scl_metapackage/-/pipelines/172225000</a></div><div>1. Indeed it seems that PATH and others env vars are not loaded</div><div>2. scl load … do not works</div><div><br></div><div>I have any problem with these rpm on my local computer</div><div><br></div><div>This image extends this one:  <a href="https://gitlab.com/jonathan-dlang/fedora">https://gitlab.com/jonathan-dlang/fedora</a></div><div>which define an entrypoint in order to initialize both modules and scl</div><div><br></div><div>I will take a closer look to your code Zach</div><div><br></div><div>Any way your help is really appreciated.</div><div>I would like to demonstrate that scl can replace environment module into my lab</div><div><br></div><div>Thanks, best regards</div><div><br></div><div>Jonathan</div><div><br></div><div><br></div><div><br></div><div><br></div><div>  </div><div><br></div><div>Le lundi 27 juillet 2020 à 14:30 -0400, Zach Huntington Meath a écrit :</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div dir="ltr">Jonathan,<div><br></div><div>I've had some success with containers and trying to use the SCL while the container is running. What I've had success with is adding the script like you had up there to /etc/profile.d and then it'll run when any bash instance is started. Something like this:</div><div><a href="https://github.com/theforeman/forklift/blob/master/roles/ruby_scl/tasks/main.yml#L14-L20">https://github.com/theforeman/forklift/blob/master/roles/ruby_scl/tasks/main.yml#L14-L20</a><br><br>But instead of using ansible you just have your script and copy it to /etc/profile.d/foo.sh when you're building the container in your Dockerfile. </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jul 27, 2020 at 1:41 PM Stefan Ring <<a href="mailto:stefanrin@gmail.com">stefanrin@gmail.com</a>> wrote:<br></div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex">On Mon, Jul 27, 2020 at 12:23 PM Jonathan MERCIER <<a href="mailto:jmercier@cng.fr" target="_blank">jmercier@cng.fr</a>> wrote:<br>
><br>
> Dear I tried to build a container both with docker and buildah and got the same message error from gitlab-ci<br>
><br>
> ---> <a href="https://gitlab.com/jonathan-dlang/scl_metapackage/-/jobs/657306213" rel="noreferrer" target="_blank">https://gitlab.com/jonathan-dlang/scl_metapackage/-/jobs/657306213</a><br>
<br>
No access rights.<br>
<br>
> $ scl load "${SCL_VENDOR}-${SCL_COLLECTION}${DLANG_VERSION}"<br>
> 31Missing function scl in your environment!!!<br>
><br>
> What is those scl functions ?<br>
><br>
> We can see too that while scl_source  is calld (line 28) the list of loaded collection is empty (line 29)<br>
<br>
Do you know how to use scl outside of a container? Because it does not<br>
actually make a difference.<br>
<br>
> I tried to use a scl_enable file as it is done by sclorg -> <a href="https://github.com/sclorg/mariadb-container/blob/master/root-common/usr/share/container-scripts/mysql/scl_enable" rel="noreferrer" target="_blank">https://github.com/sclorg/mariadb-container/blob/master/root-common/usr/share/container-scripts/mysql/scl_enable</a><br>
><br>
> with the same error<br>
<br>
If it’s only one line in the CI recipe, just use scl enable {scl_name}<br>
-- command (line).<br>
<br>
<br>
_______________________________________________<br>
SCLorg mailing list<br>
<a href="mailto:SCLorg@redhat.com" target="_blank">SCLorg@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/sclorg" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/sclorg</a><br>
</blockquote></div><br clear="all"><div><br></div><pre>_______________________________________________</pre><pre>SCLorg mailing list</pre><a href="mailto:SCLorg@redhat.com"><pre>SCLorg@redhat.com</pre></a><pre><br></pre><a href="https://www.redhat.com/mailman/listinfo/sclorg"><pre>https://www.redhat.com/mailman/listinfo/sclorg</pre></a><pre><br></pre></blockquote></body></html>