[ET Trac] #2612: GetComponents assumes that $USER is defined

Roland Haas trac-noreply at einsteintoolkit.org
Wed Jun 8 14:40:12 CDT 2022


#2612: GetComponents assumes that $USER is defined

 Reporter: Roland Haas
   Status: new
Milestone: 
  Version: development version
     Type: bug
 Priority: minor
Component: GetComponents

Currently GetComponents assumes that the `$USER` environment variable is set. This is not true inside of docker containers and requires some workarounds in the Dockerfile to handle correctly.

Pull request [https://github.com/gridaphobe/CRL/pull/11/files](https://github.com/gridaphobe/CRL/pull/11/files) instead uses Perl’s `getpwuid` to get the user name from the OS which does not rely on USER. I tested getpwuid to work fine in a Ubuntu container.

--
Ticket URL: https://bitbucket.org/einsteintoolkit/tickets/issues/2612/getcomponents-assumes-that-user-is-defined
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.einsteintoolkit.org/pipermail/trac/attachments/20220608/32d7cabc/attachment.html 


More information about the Trac mailing list