all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: ludovic.courtes@inria.fr (Ludovic Courtès)
To: guix-devel <guix-devel@gnu.org>
Subject: ‘guix pack’ & entry point
Date: Thu, 28 Sep 2017 16:47:09 +0200	[thread overview]
Message-ID: <87a81eric2.fsf@gnu.org> (raw)

Hello Guix!

Things like the Docker image format¹ that ‘guix pack’ can produce have a
notion of an “entry point”.  The entry point is an executable that is
invoked when one runs “docker run” (I think) without any argument.

Currently ‘guix pack’ doesn’t specify an entry point, but perhaps it
should?  That would make it easier to “run” a pack.

If it did, what should the UI look like?  Should it be:

  guix pack -f docker --entry-point=bin/lstopo hwloc

which would mean that the entry point is ‘bin/lstopo’ in the profile.  I
suppose it would be too inflexible in practice, because people might
want to run programs that are not part of a package.

Then, should it be:

  guix pack -f docker --entry-point=./entry-point.sh hwloc

where ‘entry-point.sh’ would be added to the store?  The entry point
would probably have to be executed after etc/profile has been sourced.

Internally, at the API level, the entry point should probably be a
gexp.  That would make it easy to embark GuixSD if needed.

Thoughts?

Bonus: what would the tarball backend do with the entry point?  Ignore it?

Ludo’.

¹ https://github.com/moby/moby/blob/master/image/spec/v1.2.md

             reply	other threads:[~2017-09-28 14:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-28 14:47 Ludovic Courtès [this message]
2017-09-29  8:40 ` ‘guix pack’ & entry point Vincent Legoll
2017-09-29  9:58 ` Ricardo Wurmus
2017-09-29 11:58   ` 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=87a81eric2.fsf@gnu.org \
    --to=ludovic.courtes@inria.fr \
    --cc=guix-devel@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.