From mboxrd@z Thu Jan 1 00:00:00 1970 From: zimoun Subject: guix pack -f docker and profile ? Date: Thu, 16 May 2019 20:26:41 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:42618) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hRL5i-0003ho-U0 for help-guix@gnu.org; Thu, 16 May 2019 14:26:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hRL5i-0007iu-4u for help-guix@gnu.org; Thu, 16 May 2019 14:26:54 -0400 Received: from mail-qt1-x82b.google.com ([2607:f8b0:4864:20::82b]:36635) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hRL5h-0007et-WD for help-guix@gnu.org; Thu, 16 May 2019 14:26:54 -0400 Received: by mail-qt1-x82b.google.com with SMTP id a17so5116760qth.3 for ; Thu, 16 May 2019 11:26:53 -0700 (PDT) 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: help-guix Dear, The command line: guix pack \ -f docker \ -C none \ -S /bin=bin \ -S /lib=lib \ -S /share=share \ -S /etc=etc \ glibc-utf8-locales coreutils tzdata \ bash r r- creates a Docker image containing the R interpreter and the R package . Nice! Then: docker run -ti --rm --tmpfs /tmp R launches R inside the Docker. Cool! 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()' Is it possible to directly have the profile under /etc/ ? Other said, how to correctly expose the environment variables ? Thank you in advance. All the best, simon