From: "Przemysław Kamiński via" <help-guix@gnu.org>
To: help-guix@gnu.org
Subject: specify custom manifest->friendly-name for guix pack -f docker?
Date: Wed, 18 Jan 2023 20:40:48 +0000 [thread overview]
Message-ID: <XlXCVzEBh5qr7aUanahTesmxdxl0cmGR5uzJ-LD2HTN8CRbdDRUeEFF9vkLCWuQ7hKruuLvAkOPkJpWDTEAeN2PQizaXsOsHTBAWLofdnDQ=@pm.me> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 1459 bytes --]
Hello,
I want to
guix pack -f docker -m manifest.scm
and get a nice image name. However, looking at the code I see
[https://git.savannah.gnu.org/cgit/guix.git/tree/guix/scripts/pack.scm\#n618][https_git.savannah.gnu.org_cgit_guix.git_tree_guix_scripts_pack.scm_n618]
and then the ugly loop
[https://git.savannah.gnu.org/cgit/guix.git/tree/guix/scripts/pack.scm\#n155][https_git.savannah.gnu.org_cgit_guix.git_tree_guix_scripts_pack.scm_n155]
that produces cryptic docker image names like bash-coreutils-r-zhs.
Would it be possible to provide an option to specify that name?
Current manifest record-type is a list of manifest entries:
[https://git.savannah.gnu.org/cgit/guix.git/tree/guix/profiles.scm\#n205][https_git.savannah.gnu.org_cgit_guix.git_tree_guix_profiles.scm_n205]
I guess adding a name property to manifest is too big of a change.
Maybe then add an option to guix pack to accept optional name? And if not
provided, fall back to manifest->friendly-name.
Best,
Przemek
[https_git.savannah.gnu.org_cgit_guix.git_tree_guix_scripts_pack.scm_n618]: https://git.savannah.gnu.org/cgit/guix.git/tree/guix/scripts/pack.scm#n618
[https_git.savannah.gnu.org_cgit_guix.git_tree_guix_scripts_pack.scm_n155]: https://git.savannah.gnu.org/cgit/guix.git/tree/guix/scripts/pack.scm#n155
[https_git.savannah.gnu.org_cgit_guix.git_tree_guix_profiles.scm_n205]: https://git.savannah.gnu.org/cgit/guix.git/tree/guix/profiles.scm#n205
[-- Attachment #1.2: attachment.sig --]
[-- Type: application/pgp-signature, Size: 235 bytes --]
[-- Attachment #1.3: publickey - EmailAddress(s=cgenie@pm.me) - 0x9CC42B0A.asc --]
[-- Type: application/pgp-keys, Size: 682 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 249 bytes --]
next reply other threads:[~2023-01-18 22:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-18 20:40 Przemysław Kamiński via [this message]
2023-01-20 12:01 ` specify custom manifest->friendly-name for guix pack -f docker? Simon Tournier
2023-01-20 15:07 ` Greg Hogan
2023-01-20 17:15 ` Przemysław Kamiński via
2023-02-13 9:11 ` Simon Tournier
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='XlXCVzEBh5qr7aUanahTesmxdxl0cmGR5uzJ-LD2HTN8CRbdDRUeEFF9vkLCWuQ7hKruuLvAkOPkJpWDTEAeN2PQizaXsOsHTBAWLofdnDQ=@pm.me' \
--to=help-guix@gnu.org \
--cc=cgenie@pm.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.