unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Christopher Baines <mail@cbaines.net>
To: "Dr. Arne Babenhauserheide" <arne_bab@web.de>
Cc: help-guix@gnu.org
Subject: Re: How to create a substitute server with substitutes that failed?
Date: Wed, 26 Aug 2020 21:47:03 +0100	[thread overview]
Message-ID: <87h7spw2wo.fsf@cbaines.net> (raw)
In-Reply-To: <87o8mxwt8o.fsf@web.de>

[-- Attachment #1: Type: text/plain, Size: 2317 bytes --]


Dr. Arne Babenhauserheide <arne_bab@web.de> writes:

> I’d like to create a small server that provides substitutes for
> packages for which I often have to build a fallback (mostly ungoogled
> Chromium).
>
> How can I do that? Is there already a simply way?

It's not simple (yet), but I'm hoping to get there eventually with the
Guix Build Coordinator.

1: https://git.cbaines.net/guix/build-coordinator/about/

> It would be ideal if I could put it on a dumb public host with only
> HTTPS access and FTP for upload (since I already have that and it has
> unlimited bandwidth).

Using guix publish along with something to build the packages is
simpler, providing you want to serve them from the store. However, one
of the things on my mind when designing the Guix Build Coordinator was
specifically this use case. I was actually more thinking about
scalability, I didn't want to be limited by the storage of a single
machine.

Again, it's not simple (yet), but how this works currently is through
hooks [2]. You have the Guix Build Coordinator run some Guile code when
a build is successful, and this can do something with the outputs.

2: https://git.cbaines.net/guix/build-coordinator/tree/guix-build-coordinator/hooks.scm

For https://guix.cbaines.net/ I use the build-success-s3-publish-hook as
I use a hosted S3 service for the storage of the outputs. You could very
similarly implement a build-success-ftp-publish-hook and use this to
upload nars. Like guix publish, the Guix Build Coordinator can generate
the narinfo files you need to serve substitutes.

The Guix Build Coordinator is also close (but not quite there) to being
able to easily build a subset of Guix packages in an automated
way. Currently the
guix-build-coordinator-queue-builds-from-guix-data-service [3] script
will queue builds for all packages, and the channel instance
derivations, but it could and should in the future allow controlling
what to build.

3: https://git.cbaines.net/guix/build-coordinator/tree/scripts/guix-build-coordinator-queue-builds-from-guix-data-service.in

I realise the promise of being able to do this more easily in the future
isn't that helpful, but I still wanted to mention the Guix Build
Coordinator in case it's something you're interested in.

Chris

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 962 bytes --]

  parent reply	other threads:[~2020-08-26 20:47 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87r1rtwtes.fsf@web.de>
2020-08-26 11:18 ` How to create a substitute server with substitutes that failed? Dr. Arne Babenhauserheide
2020-08-26 12:07   ` Julien Lepiller
2020-08-26 14:56     ` Dr. Arne Babenhauserheide
2020-08-26 15:26       ` Julien Lepiller
2020-08-26 16:12         ` Dr. Arne Babenhauserheide
2020-08-26 17:00           ` Julien Lepiller
2020-08-26 20:47   ` Christopher Baines [this message]
2020-08-27  0:22     ` Dr. Arne Babenhauserheide
2020-08-27 14:10   ` zimoun
2020-08-27 20:32     ` Dr. Arne Babenhauserheide

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87h7spw2wo.fsf@cbaines.net \
    --to=mail@cbaines.net \
    --cc=arne_bab@web.de \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).