unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#51506: Add --quiet option to guix-install.sh
@ 2021-10-30  2:45 Jacob Hrbek
  2021-11-02 10:39 ` zimoun
       [not found] ` <handler.51506.B.16355890496707.ack@debbugs.gnu.org>
  0 siblings, 2 replies; 4+ messages in thread
From: Jacob Hrbek @ 2021-10-30  2:45 UTC (permalink / raw)
  To: 51506


[-- Attachment #1.1.1: Type: text/plain, Size: 1801 bytes --]

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.

[-- Attachment #1.1.2.1: Type: text/html, Size: 9473 bytes --]

[-- Attachment #1.2: publickey - kreyren@rixotstudio.cz - 0x1677DB82.asc --]
[-- Type: application/pgp-keys, Size: 737 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 249 bytes --]

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

* bug#51506: Add --quiet option to guix-install.sh
  2021-10-30  2:45 bug#51506: Add --quiet option to guix-install.sh Jacob Hrbek
@ 2021-11-02 10:39 ` zimoun
       [not found] ` <handler.51506.B.16355890496707.ack@debbugs.gnu.org>
  1 sibling, 0 replies; 4+ messages in thread
From: zimoun @ 2021-11-02 10:39 UTC (permalink / raw)
  To: Jacob Hrbek; +Cc: 51506

Hi,

On Sat, 30 Oct 2021 at 02:45, Jacob Hrbek <kreyren@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




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

* bug#51506: Acknowledgement (Add --quiet option to guix-install.sh)
       [not found] ` <handler.51506.B.16355890496707.ack@debbugs.gnu.org>
@ 2021-11-03 19:53   ` Jacob Hrbek
  2021-11-05  4:49     ` bug#51506: Add --quiet option to guix-install.sh Maxim Cournoyer
  0 siblings, 1 reply; 4+ messages in thread
From: Jacob Hrbek @ 2021-11-03 19:53 UTC (permalink / raw)
  To: 51506


[-- Attachment #1.1: Type: text/plain, Size: 1660 bytes --]

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@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@gnu.org
> 

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

> send it to 51506@debbugs.gnu.org.
> 

> Please do not send mail to help-debbugs@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@gnu.org with problems

[-- Attachment #1.2: publickey - kreyren@rixotstudio.cz - 0x1677DB82.asc --]
[-- Type: application/pgp-keys, Size: 737 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 249 bytes --]

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

* bug#51506: Add --quiet option to guix-install.sh
  2021-11-03 19:53   ` bug#51506: Acknowledgement (Add --quiet option to guix-install.sh) Jacob Hrbek
@ 2021-11-05  4:49     ` Maxim Cournoyer
  0 siblings, 0 replies; 4+ messages in thread
From: Maxim Cournoyer @ 2021-11-05  4:49 UTC (permalink / raw)
  To: Jacob Hrbek; +Cc: 51506-done

Hello,

Jacob Hrbek <kreyren@rixotstudio.cz> writes:

> Yes, that seems to work, thanks

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

Closing.

Maxim




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

end of thread, other threads:[~2021-11-05  4:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-30  2:45 bug#51506: Add --quiet option to guix-install.sh Jacob Hrbek
2021-11-02 10:39 ` zimoun
     [not found] ` <handler.51506.B.16355890496707.ack@debbugs.gnu.org>
2021-11-03 19:53   ` bug#51506: Acknowledgement (Add --quiet option to guix-install.sh) Jacob Hrbek
2021-11-05  4:49     ` bug#51506: Add --quiet option to guix-install.sh Maxim Cournoyer

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

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