GNU bug report logs - #74948
guix pack docker environment variable setting

Previous Next

Package: guix;

Reported by: Simon Josefsson <simon <at> josefsson.org>

Date: Wed, 18 Dec 2024 17:09:11 UTC

Severity: normal

To reply to this bug, email your comments to 74948 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#74948; Package guix. (Wed, 18 Dec 2024 17:09:11 GMT) Full text and rfc822 format available.

Acknowledgement sent to Simon Josefsson <simon <at> josefsson.org>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Wed, 18 Dec 2024 17:09:11 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Simon Josefsson <simon <at> josefsson.org>
To: bug-guix <at> gnu.org
Subject: guix pack docker environment variable setting
Date: Wed, 18 Dec 2024 18:08:11 +0100
[Message part 1 (text/plain, inline)]
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
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#74948; Package guix. (Tue, 07 Jan 2025 23:02:02 GMT) Full text and rfc822 format available.

Message #8 received at 74948 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Simon Josefsson <simon <at> josefsson.org>
Cc: 74948 <at> debbugs.gnu.org
Subject: Re: bug#74948: guix pack docker environment variable setting
Date: Wed, 08 Jan 2025 00:01:25 +0100
Hi,

Simon Josefsson <simon <at> josefsson.org> skribis:

> 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’.




This bug report was last modified 255 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.