unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* specify custom manifest->friendly-name for guix pack -f docker?
@ 2023-01-18 20:40 Przemysław Kamiński via
  2023-01-20 12:01 ` Simon Tournier
  0 siblings, 1 reply; 5+ messages in thread
From: Przemysław Kamiński via @ 2023-01-18 20:40 UTC (permalink / raw)
  To: help-guix


[-- 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 --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-02-13 10:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-18 20:40 specify custom manifest->friendly-name for guix pack -f docker? Przemysław Kamiński via
2023-01-20 12:01 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).