From: "Ludovic Courtès" <ludo@gnu.org>
To: zimoun <zimon.toutoune@gmail.com>
Cc: help-guix <help-guix@gnu.org>
Subject: Re: guix pack -f docker and profile ?
Date: Sun, 19 May 2019 16:38:56 +0200 [thread overview]
Message-ID: <87a7fitsov.fsf@gnu.org> (raw)
In-Reply-To: <CAJ3okZ1=SehT3FGWN1PNYmfUi-ktSw3vFOSbXFLg+oTr+U_-OQ@mail.gmail.com> (zimoun's message of "Thu, 16 May 2019 20:26:41 +0200")
Hello Simon!
zimoun <zimon.toutoune@gmail.com> 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.
WDYT?
Thanks,
Ludo’.
next prev parent reply other threads:[~2019-05-19 14:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-16 18:26 guix pack -f docker and profile ? zimoun
2019-05-19 14:38 ` Ludovic Courtès [this message]
2019-05-20 13:15 ` zimoun
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87a7fitsov.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=help-guix@gnu.org \
--cc=zimon.toutoune@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).