‘guix pack’ automatic environment for Docker format
Hello, I am trying to use ‘guix pack’ 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=bin gcc-toolchain bash cmake make pkg-config python@2 coreutils eigen jsoncpp googletest Then I run that image like this: $ IMAGE=`docker load -i docker-pack.tar.gz | cut -d' ' -f3` $ 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 ‘-S /etc/profile=etc/profile’ and then source it manually. I was thinking that maybe 'guix pack -f docker' could set the ‘Env’ part in the ‘config.json’ [1] with the appriopriate environment variables 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 -- Mathieu Lirzin GPG: F2A3 8D7E EB2B 6640 5761 070D 0ADE E100 9460 4D37
Re: reconfiguring
myg...@gmail.com writes: > On 02/13/2018 at 21:32 Andreas Enge writes: > >> On Tue, Feb 13, 2018 at 02:03:58PM -0500, Leo Famulari wrote: >>> But, it doesn't try to stop and restart those services in case of any >>> relevant changes, right? Doesn't that require a reboot? >> >> Yes, I understood so. I had the problem with my nginx server recently. >> In that case, I needed to stop it before upgrading, and then it was >> restarted automatically. However, when it was not stopped, it continued >> running with the old configuration. It is not quite clear to me whether >> this is a bug or a feature. I tend more towards bug... It is definitely >> in contrast to what happens in Debian, for instance. > > This bug/feature bit me (also Debian user) recently ;-) > > Is this by design? Or a limitation if the current implementation? It’s a bug; bug 22039 to be exact. -- Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC https://elephly.net