From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mathieu Lirzin Subject: =?utf-8?B?4oCYZ3VpeCBwYWNr4oCZ?= automatic environment for Docker format Date: Thu, 15 Feb 2018 00:19:16 +0100 Message-ID: <87h8qjgnwr.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51717) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1em6Kd-0005bM-VB for help-guix@gnu.org; Wed, 14 Feb 2018 18:19:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1em6Kc-0004OG-TE for help-guix@gnu.org; Wed, 14 Feb 2018 18:19:19 -0500 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:47634) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1em6Kc-0004Ns-Pc for help-guix@gnu.org; Wed, 14 Feb 2018 18:19:18 -0500 Received: from [2a01:e35:2ec2:e580:7d5f:f616:fc6f:3970] (port=51212 helo=godel) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1em6Kc-0000q9-8T for help-guix@gnu.org; Wed, 14 Feb 2018 18:19:18 -0500 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@gnu.org Hello, I am trying to use =E2=80=98guix pack=E2=80=99 to provide my colleagues an = easy to use compilation environment to run with Docker. My command to create the container image is the following $ guix pack -f docker -S /bin=3Dbin gcc-toolchain bash cmake make pkg-con= fig python@2 coreutils eigen jsoncpp googletest Then I run that image like this: $ IMAGE=3D`docker load -i docker-pack.tar.gz | cut -d' ' -f3`=20 $ docker run -it $IMAGE /bin/bash in order for the compilation environment to be fully ready I need to source the /gnu/store...-profile/etc/profile for things like CMAKE_PREFIX_PATH, LIBRARY_PATH, ... While one obvious available solution is to add an extra symlink =E2=80=98-S /etc/profile=3Detc/profile=E2=80=99 and then source it manually. I was thi= nking that maybe 'guix pack -f docker' could set the =E2=80=98Env=E2=80=99 part i= n the =E2=80=98config.json=E2=80=99 [1] with the appriopriate environment variabl= es automatically. I would like to know if it would be a good idea, and if it is easily doable? Thanks. [1] https://github.com/moby/moby/blob/master/image/spec/v1.2.md#image-json-= description --=20 Mathieu Lirzin GPG: F2A3 8D7E EB2B 6640 5761 070D 0ADE E100 9460 4D37