GNU bug report logs - #51506
Add --quiet option to guix-install.sh

Previous Next

Package: guix;

Reported by: Jacob Hrbek <kreyren <at> rixotstudio.cz>

Date: Sat, 30 Oct 2021 10:18:02 UTC

Severity: normal

Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 51506 in the body.
You can then email your comments to 51506 AT debbugs.gnu.org in the normal way.

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#51506; Package guix. (Sat, 30 Oct 2021 10:18:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jacob Hrbek <kreyren <at> rixotstudio.cz>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Sat, 30 Oct 2021 10:18:03 GMT) Full text and rfc822 format available.

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

From: Jacob Hrbek <kreyren <at> rixotstudio.cz>
To: "bug-guix <at> gnu.org" <bug-guix <at> gnu.org>
Subject: Add --quiet option to guix-install.sh
Date: Sat, 30 Oct 2021 02:45:53 +0000
[Message part 1 (text/plain, inline)]
I can't cache the docker step to perform guix-install.sh, because it requires a user input which causes the `docker build -t guix:latest path/to/directory/with/Dockerfile` to ERR1.

Proposing to add command line option `--quiet` for the installer to not ask

Relevant dockerfile:

```dockerfile
#@ All rights reserved (C) Jacob Hrbek <rsa4096/0x31AE4020956E0A9A> in 30/10/2021-EU 01:22:40 UTC

# TODO(Krey): Set as FLOSS once finished

###!!! HALTED(Krey): The guix-install.sh requires an interactive shell blocking the deployment

# 30/10/2021-EU 01:44:14 UTC
FROM debian:bullseye-20211011-slim
LABEL Description="Minimal Debian Linux Image with GUIX package manager designed for testing"
# 30/10/2021-EU 01:24:54 UTC
LABEL Version="30102021012454"

ENV DEBIAN_FRONTEND="noninteractive"

# OUTSOURCED(Krey): Guix's official way to install the package manager on non-GUIX system is using https://git.savannah.gnu.org/cgit/guix.git/plain/etc/guix-install.sh
# 30/10/2021-EU 01:24:54 UTC
ENV guixInstall_commit="e4ed0b3969ddbe44347c468c96ccfa057b2dd256"
RUN true \
&& apt-get update \
&& apt-get install --yes --quiet --no-install-recommends \
wget \
gnupg \
xz-utils \
# NOTE(Krey): We need this otherwise wget will fail with `ERROR: The certificate of '' is not trusted`
ca-certificates \
&& wget "https://git.savannah.gnu.org/cgit/guix.git/plain/etc/guix-install.sh?id=$guixInstall_commit" -O guix-install.sh \
# Add guix-install dependencies
&& chmod +x guix-install.sh \
&& sh guix-install.sh \
&& apt-get remove --yes \
wget \
gnupg \
xz-utils \
&& apt-get autoremove --yes \
&& apt-get clean --yes \
&& rm -rf \
/var/cache/debconf/* \
/var/lib/apt/lists/* \
/tmp/* \
/var/tmp/*

```

-- Jacob "Kreyren" Hrbek

Sent with ProtonMail Secure Email.
[Message part 2 (text/html, inline)]
[publickey - kreyren@rixotstudio.cz - 0x1677DB82.asc (application/pgp-keys, attachment)]
[signature.asc (application/pgp-signature, attachment)]

Information forwarded to bug-guix <at> gnu.org:
bug#51506; Package guix. (Tue, 02 Nov 2021 10:44:02 GMT) Full text and rfc822 format available.

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

From: zimoun <zimon.toutoune <at> gmail.com>
To: Jacob Hrbek <kreyren <at> rixotstudio.cz>
Cc: 51506 <at> debbugs.gnu.org
Subject: Re: bug#51506: Add --quiet option to guix-install.sh
Date: Tue, 02 Nov 2021 11:39:13 +0100
Hi,

On Sat, 30 Oct 2021 at 02:45, Jacob Hrbek <kreyren <at> rixotstudio.cz> wrote:
> I can't cache the docker step to perform guix-install.sh, because it
> requires a user input which causes the `docker build -t guix:latest
> path/to/directory/with/Dockerfile` to ERR1.
>
> Proposing to add command line option `--quiet` for the installer to
> not ask

I think your proposal already exists.

> Relevant dockerfile:
>
> ```dockerfile
> #@ All rights reserved (C) Jacob Hrbek <rsa4096/0x31AE4020956E0A9A> in 30/10/2021-EU 01:22:40 UTC
> # TODO(Krey): Set as FLOSS once finished

[...]

> && chmod +x guix-install.sh \
> && sh guix-install.sh \

Replace this latter line by:

    yes | ./guix-install.sh

should do what you are asking, IIUC.

> && apt-get remove --yes \
> wget \
> gnupg \
> xz-utils \

[...]

> ```

Does it not work for you?


Cheers,
simon




Information forwarded to bug-guix <at> gnu.org:
bug#51506; Package guix. (Wed, 03 Nov 2021 19:55:01 GMT) Full text and rfc822 format available.

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

From: Jacob Hrbek <kreyren <at> rixotstudio.cz>
To: 51506 <at> debbugs.gnu.org
Subject: Re: bug#51506: Acknowledgement (Add --quiet option to guix-install.sh)
Date: Wed, 03 Nov 2021 19:53:49 +0000
[Message part 1 (text/plain, inline)]
Yes, that seems to work, thanks

-- Jacob "Kreyren" Hrbek

Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

On Saturday, October 30th, 2021 at 10:18 AM, <help-debbugs <at> gnu.org> wrote:

> Thank you for filing a new bug report with debbugs.gnu.org.
> 

> This is an automatically generated reply to let you know your message
> 

> has been received.
> 

> Your message is being forwarded to the package maintainers and other
> 

> interested parties for their attention; they will reply in due course.
> 

> Your message has been sent to the package maintainer(s):
> 

> bug-guix <at> gnu.org
> 

> If you wish to submit further information on this problem, please
> 

> send it to 51506 <at> debbugs.gnu.org.
> 

> Please do not send mail to help-debbugs <at> gnu.org unless you wish
> 

> to report a problem with the Bug-tracking system.
> 

> -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> 

> 51506: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=51506
> 

> GNU Bug Tracking System
> 

> Contact help-debbugs <at> gnu.org with problems
[publickey - kreyren@rixotstudio.cz - 0x1677DB82.asc (application/pgp-keys, attachment)]
[signature.asc (application/pgp-signature, attachment)]

Reply sent to Maxim Cournoyer <maxim.cournoyer <at> gmail.com>:
You have taken responsibility. (Fri, 05 Nov 2021 04:51:02 GMT) Full text and rfc822 format available.

Notification sent to Jacob Hrbek <kreyren <at> rixotstudio.cz>:
bug acknowledged by developer. (Fri, 05 Nov 2021 04:51:02 GMT) Full text and rfc822 format available.

Message #16 received at 51506-done <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: Jacob Hrbek <kreyren <at> rixotstudio.cz>
Cc: 51506-done <at> debbugs.gnu.org
Subject: Re: bug#51506: Add --quiet option to guix-install.sh
Date: Fri, 05 Nov 2021 00:49:55 -0400
Hello,

Jacob Hrbek <kreyren <at> rixotstudio.cz> writes:

> Yes, that seems to work, thanks

Great, thanks for the reply, and thanks for Simon for the solution!

Closing.

Maxim




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 03 Dec 2021 12:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 144 days ago.

Previous Next


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