From: ludo@gnu.org (Ludovic Courtès)
To: Roel Janssen <roel@gnu.org>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: Creating Docker containers in Scheme
Date: Wed, 08 Nov 2017 09:44:53 +0100 [thread overview]
Message-ID: <87d14tw456.fsf@gnu.org> (raw)
In-Reply-To: <87lgjoiuf1.fsf@gnu.org> (Roel Janssen's message of "Thu, 02 Nov 2017 16:15:14 +0100")
Hi,
Roel Janssen <roel@gnu.org> skribis:
> I'd like to create a Docker container from Scheme. Looking at
> guix/scripts/pack.scm, I believe something like this should be possible:
>
> (docker-image "my-container"
> (profile-derivation
> (packages->manifest (list hello coreutils))))
Move precisely:
(mlet %store-monad ((profile (profile-derivation …)))
(docker-image "my-container" profile))
> Is this something we could add to the the public interface of a module?
Sure. For now the easiest solution would be to export ‘docker-image’
from (guix scripts pack).
Longer-term, we could rename (guix docker) to (guix build docker) and
move ‘docker-image’ to a new (guix docker) module, but perhaps we’d also
need a (guix pack) modules containing tools that are shared between the
docker and tarball backends of ‘guix pack’.
WDYT?
Ludo’.
next prev parent reply other threads:[~2017-11-08 8:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-02 15:15 Creating Docker containers in Scheme Roel Janssen
2017-11-08 8:44 ` Ludovic Courtès [this message]
2017-11-08 9:38 ` Roel Janssen
2017-11-08 13:55 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87d14tw456.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=guix-devel@gnu.org \
--cc=roel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.