From: Edouard Klein <edou@rdklein.fr>
To: "Todor Kondić" <tk.code@protonmail.com>
Cc: help-guix@gnu.org
Subject: Re: guix pack and exposing ports
Date: Thu, 19 Aug 2021 11:40:10 +0200 [thread overview]
Message-ID: <87tujlixhh.fsf@rdklein.fr> (raw)
In-Reply-To: <4no0564iP4u1kbR3RQCYehUZKZl5ijwMQZqXrwP9MevWQE1Hh6fayNOPVIIXlSJ4cHZ2bd8NFstJgp8RIEIyRWpzjumzWbUKjQDMO4dXjcw=@protonmail.com>
Hi !
From what I know, with guix pack you can only have the dependencies in
the docker image, but you won't have anything to start or manage your
software automatically. You need to invoke the correct command (with
docker run, I believe).
What you can do is create an operating-system declaration and use the
guix system docker-image subcommand. Note that this is way more
involved, as you need to create a shepherd service for your software.
I quickly ran into docker limitations following this route, but
depending on what you want to do this may be the way to go.
The alternative is to use the guix pack image as the base image in a
standard dockerfile.
As for the size of the image, see this thread
https://lists.gnu.org/archive/html/help-guix/2021-07/msg00064.html
Good luck
Todor Kondić writes:
> Hello,
>
> Please bear with me since I am not that very docker savvy. As far as I understand, normally, one can expose certain ports in a docker description file. But, how to do that when using `guix pack -f docker` command where the docker recipe is hidden from the user?
>
> Also, I note I'm getting ~10 GiG image for a flimsy program depending on R and shiny. Somehow that doesn't feel right. :)
next prev parent reply other threads:[~2021-08-19 9:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-18 21:00 guix pack and exposing ports Todor Kondić
2021-08-19 9:40 ` Edouard Klein [this message]
2021-08-19 9:54 ` Todor Kondić
2021-08-20 8:20 ` zimoun
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=87tujlixhh.fsf@rdklein.fr \
--to=edou@rdklein.fr \
--cc=help-guix@gnu.org \
--cc=tk.code@protonmail.com \
/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.