[scl.org] ubi8/nodejs-16-minimal HOME env and PATH

Jose Gonzalez jose.gonzalez at redhat.com
Fri Dec 10 22:37:12 UTC 2021


Hi there!

I attempted to use the ubi8/nodejs-16-minimal image (
https://catalog.redhat.com/software/containers/ubi8/nodejs-16-minimal/615aefd53f6014fa45ae1ae2)
and couldn't seem to get the PATH to refer to the appropriate $HOME
location. The result is that the node_modules paths are all relative to
root ("/") instead of relative to the /opt/app-root/src path

$ docker run -it registry.access.redhat.com/ubi8/nodejs-16-minimal:latest
printenv PATH
/node_modules/.bin/:/.npm-global/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

In testing on my machine, it seems to be because the HOME variable and the
PATH variable are declared in the same ENV action. Separating them resolved
this for me, though it seems like it should have worked as expected.

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.

Regards,

José R. González
Red Hat | Partner Lifecycle Engineering
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/sclorg/attachments/20211210/393600e6/attachment.htm>


More information about the SCLorg mailing list