guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Introducing ‘guix pack’


From: Ricardo Wurmus
Subject: Re: Introducing ‘guix pack’
Date: Mon, 20 Mar 2017 16:14:57 +0100
User-agent: mu4e 0.9.18; emacs 25.1.1

Clément Lassieur <address@hidden> writes:

> Ludovic Courtès <address@hidden> writes:
>
>> Hello Guix!  Hello 2.2 Guilers!
>>
>> address@hidden (Ludovic Courtès) skribis:
>>
>>> I’d like to move support for Docker (currently in ‘guix archive’) to
>>> this new command because I think it’s more appropriate: ‘guix archive’
>>> is supposed to be rather low-level so it would not create a profile, for
>>> instance.
>>
>> As of right now, ‘guix pack’ can create Docker image (‘guix archive’
>> can no longer do that):
>>
>>   guix pack guile-next -S /opt/guile-2.2.0= -f docker
>>
>> I’d be grateful if someone could check with Docker that I didn’t break
>> anything though.  Any takers?  :-)
>
> I just tested it (although I'm probably not the first) and it works
> (with "docker load").  Thanks!

I also tested it successfully:

    image=$(guix pack -f docker -S /opt/gnu/bin=bin r)
    docker load < $image
    id=$(docker images -q profile | tail -n 1)
    docker run --rm --tmpfs /tmp:rw,size=787448k,mode=1777 -ti $id 
/opt/gnu/bin/R

This creates an image for R, loads it, starts (and eventually removes)
a container in which R runs.

For people who find this cumbersome: use containers with Guix instead.
Here’s how:

    guix environment --container --ad-hoc r -- R

--
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net




reply via email to

[Prev in Thread] Current Thread [Next in Thread]