guix pack docker environment variable setting

  • Open
  • quality assurance status badge
Details
2 participants
  • Ludovic Courtès
  • Simon Josefsson
Owner
unassigned
Submitted by
Simon Josefsson
Severity
normal
S
S
Simon Josefsson wrote on 18 Dec 2024 18:08
(address . bug-guix@gnu.org)
87v7vgkjgk.fsf@kaka.sjd.se
Hi

I believe the guix-pack docker format allows setting environment
variables in the resulting image, is that right?

I can't find any way to set them using the `guix pack` tool, am I
missing it?

Would a new `guix pack --setenv HOME=/` parameter be useful?

Such a parameter could be docker-specific and documented in
--help-docker-format. If other formats support setting environment
variables too, it could instead be a normal `guix pack` parameter.
Maybe AppImage support setting environment variables too?

Thanks,
/Simon
-----BEGIN PGP SIGNATURE-----

iIoEARYIADIWIQSjzJyHC50xCrrUzy9RcisI/kdFogUCZ2MBexQcc2ltb25Aam9z
ZWZzc29uLm9yZwAKCRBRcisI/kdFoktVAP9FTNdwoU1OhXw6x/iA/v+BdU+l2XV5
1QNMidlccDGP1gEA7bB8YjPPz4lrSh7RrEmfEHWZadIKauQtJ4J8QaYWdQ0=
=HqfV
-----END PGP SIGNATURE-----

L
L
Ludovic Courtès wrote on 8 Jan 00:01 +0100
(name . Simon Josefsson)(address . simon@josefsson.org)(address . 74948@debbugs.gnu.org)
87ed1exm7u.fsf@gnu.org
Hi,

Simon Josefsson <simon@josefsson.org> skribis:

Toggle quote (7 lines)
> Would a new `guix pack --setenv HOME=/` parameter be useful?
>
> Such a parameter could be docker-specific and documented in
> --help-docker-format. If other formats support setting environment
> variables too, it could instead be a normal `guix pack` parameter.
> Maybe AppImage support setting environment variables too?

That would definitely be useful, yes. The squashfs format (for
Singularity/Apptainer) supports it too, maybe AppImage as well.

Ludo’.
?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send an email to 74948@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 74948
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch