[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: guix pack -f docker and profile ?

From: Ludovic Courtès
Subject: Re: guix pack -f docker and profile ?
Date: Sun, 19 May 2019 16:38:56 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux)

Hello Simon!

zimoun <address@hidden> skribis:

> However you cannot load the R package <name-it> because it is not in
> the load path. Which is annoying but expected.
> Instead, one needs to make it with 2 steps:
>   docker run -ti --rm --tmpfs /tmp <image-id> bash
> then find the <hash> from the folder /gnu/store/<hash>-profile to be
> able to source it:
>   source /gnu/store/<hash>-profile/etc/profile
> Now the R library is found:
>   R -e 'library(<name-it>)'

By using ‘-S /etc=etc’, you provide /etc/profile in the container.
Thus, if you run “bash” (or “bash --login”?) in there, /etc/profile is
automatically sourced, which solves the problem, I think.

But it’s not very convenient.

> Is it possible to directly have the profile under /etc/ ?
> Other said, how to correctly expose the environment variables ?

Perhaps we should populate the ‘Environment’ bit of the Docker manifest
file?  It sounds like it would greatly improve things.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]