<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi Jose,</p>
<p>thanks for the report! You are correct, the definitions should be
in different ENV commands. I created a PR against sclorg
repository:</p>
<p><a class="moz-txt-link-freetext" href="https://github.com/sclorg/s2i-nodejs-container/pull/309">https://github.com/sclorg/s2i-nodejs-container/pull/309</a></p>
<p>Petr<br>
</p>
<div class="moz-cite-prefix">On 12/10/21 11:37 PM, Jose Gonzalez
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAOJA0+Uk+AvZ_jS5K3W3i_i-T_LueGjpzE04Y+HcP31q99yWzA@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div>Hi there!</div>
<div><br>
</div>
<div>I attempted to use the ubi8/nodejs-16-minimal image (<a
href="https://catalog.redhat.com/software/containers/ubi8/nodejs-16-minimal/615aefd53f6014fa45ae1ae2"
moz-do-not-send="true">https://catalog.redhat.com/software/containers/ubi8/nodejs-16-minimal/615aefd53f6014fa45ae1ae2</a>)
and couldn't seem to get the <font face="monospace">PATH</font>
to refer to the appropriate <font face="monospace">$HOME</font>
location. The result is that the node_modules paths are all
relative to root ("<font face="monospace">/</font>") instead
of relative to the <font face="monospace">/opt/app-root/src</font>
path</div>
<div><br>
</div>
<div><font face="monospace">$ docker run -it <a
href="http://registry.access.redhat.com/ubi8/nodejs-16-minimal:latest"
moz-do-not-send="true">registry.access.redhat.com/ubi8/nodejs-16-minimal:latest</a>
printenv PATH<br>
/node_modules/.bin/:/.npm-global/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin<br>
</font></div>
<div><br>
</div>
<div>In testing on my machine, it seems to be because the <font
face="monospace">HOME</font> variable and the <font
face="monospace">PATH</font> variable are declared in the
same <font face="monospace">ENV</font> action. Separating
them resolved this for me, though it seems like it should have
worked as expected.</div>
<div><br>
</div>
<div>Either way, I wanted to report it to see if there was
something that I could do to resolve this, or if there was
simply an error in how I was using this image. </div>
<div><br>
</div>
<div>Regards,</div>
<br clear="all">
<div>
<div dir="ltr" class="gmail_signature"
data-smartmail="gmail_signature">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div><span style="color:rgb(0,0,0)">José R. González</span></div>
<div><font color="#000000">Red Hat | Partner
Lifecycle Engineering</font></div>
<table border="0">
<tbody>
<tr>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
SCLorg mailing list
<a class="moz-txt-link-abbreviated" href="mailto:SCLorg@redhat.com">SCLorg@redhat.com</a>
<a class="moz-txt-link-freetext" href="https://listman.redhat.com/mailman/listinfo/sclorg">https://listman.redhat.com/mailman/listinfo/sclorg</a>
</pre>
</blockquote>
</body>
</html>