From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: Re: guix pack -f docker and profile ? Date: Sun, 19 May 2019 16:38:56 +0200 Message-ID: <87a7fitsov.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:58878) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hSMxn-0005jk-0s for help-guix@gnu.org; Sun, 19 May 2019 10:38:59 -0400 In-Reply-To: (zimoun's message of "Thu, 16 May 2019 20:26:41 +0200") List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: zimoun Cc: help-guix Hello Simon! zimoun skribis: > However you cannot load the R package 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 bash > then find the from the folder /gnu/store/-profile to be > able to source it: > source /gnu/store/-profile/etc/profile > > Now the R library is found: > R -e 'library()' By using =E2=80=98-S /etc=3Detc=E2=80=99, you provide /etc/profile in the c= ontainer. Thus, if you run =E2=80=9Cbash=E2=80=9D (or =E2=80=9Cbash --login=E2=80=9D?= ) in there, /etc/profile is automatically sourced, which solves the problem, I think. But it=E2=80=99s 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 =E2=80=98Environment=E2=80=99 bit of the Doc= ker manifest file? It sounds like it would greatly improve things. WDYT? Thanks, Ludo=E2=80=99.