From: Pjotr Prins <pjotr.public12@thebird.nl>
To: dvn <mail@dvn.me>
Cc: guix-devel@gnu.org
Subject: Re: guix pack -f docker ... works!
Date: Fri, 9 Feb 2018 15:26:00 +0100 [thread overview]
Message-ID: <20180209142600.GB6348@thebird.nl> (raw)
In-Reply-To: <20180209131758.bz2mlnsthnkjwdla@kowloon>
On Fri, Feb 09, 2018 at 02:17:58PM +0100, dvn wrote:
> I'm experimenting with `guix pack`, particularly with the docker format.
>
> I want to generate a tarball like so `guix pack -f docker bash
> figlet` -- and then after loading with docker, be able to run the packed
> commands. No $PATH is set in the container, so after digging around in
> the tarball, I decided to try something like this: `docker run -ti profile:lhavpi5ngs7infrh9b4nppriy4azgbwv
> /gnu/store/ars9lm9jk9hgdifg0gqvf1jrvz5mdg1j-bash-4.4.12/bin/bash` -- and
> that works! woo!
>
> This is much nicer than using an unverified Debian or Ubuntu layer in a docker container, just have a
> way of installing a few packages -- which is really all we need in containers 99% of the time.
>
> What have other people done in this direction? What are some ideas for
> setting up the $PATH in a nice way?
Use -S, some examples
https://github.com/pjotrp/guix-notes/blob/master/CONTAINERS.org
--
next prev parent reply other threads:[~2018-02-09 14:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-09 13:17 guix pack -f docker ... works! dvn
2018-02-09 14:26 ` Pjotr Prins [this message]
2018-02-09 17:08 ` 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=20180209142600.GB6348@thebird.nl \
--to=pjotr.public12@thebird.nl \
--cc=guix-devel@gnu.org \
--cc=mail@dvn.me \
/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.