* Static hosting of substitutes
@ 2024-08-17 22:04 Ian Eure
2024-08-18 8:27 ` Christopher Baines
0 siblings, 1 reply; 3+ messages in thread
From: Ian Eure @ 2024-08-17 22:04 UTC (permalink / raw)
To: guix-devel
Hi folks,
I’d like to provide substitutes for packages in my personal
channel. The ideal setup for this would be for a machine on my
internal net to perform the builds, then upload the results to
another system on the open internet. That could be a machine
running a web server pointed at a directory where the NARs get
uploaded, or an S3-like object store, or something like that --
dirt simple, just shifting bytes off disk and out a socket.
It seems that nothing like this exists, all the public substitute
servers appear to use `guix publish'. That’s not an option for
me, since it requires significantly more disk and compute than I
have on any public-facing system, and I can’t justify the cost of
bigger machines.
What would it take to make a system like this work?
Thanks,
— Ian
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Static hosting of substitutes
2024-08-17 22:04 Static hosting of substitutes Ian Eure
@ 2024-08-18 8:27 ` Christopher Baines
2024-08-20 21:37 ` Ian Eure
0 siblings, 1 reply; 3+ messages in thread
From: Christopher Baines @ 2024-08-18 8:27 UTC (permalink / raw)
To: Ian Eure; +Cc: guix-devel
[-- Attachment #1: Type: text/plain, Size: 1594 bytes --]
Ian Eure <ian@retrospec.tv> writes:
> I’d like to provide substitutes for packages in my personal channel.
> The ideal setup for this would be for a machine on my internal net to
> perform the builds, then upload the results to another system on the
> open internet. That could be a machine running a web server pointed
> at a directory where the NARs get uploaded, or an S3-like object
> store, or something like that -- dirt simple, just shifting bytes off
> disk and out a socket.
>
> It seems that nothing like this exists, all the public substitute
> servers appear to use `guix publish'. That’s not an option for me,
> since it requires significantly more disk and compute than I have on
> any public-facing system, and I can’t justify the cost of bigger
> machines.
>
> What would it take to make a system like this work?
I've run a few substitute servers like this, the required code is
actually quite simple and the build coordinator includes the necessary
bits in the form of some included hooks [1].
1: build-success-publish-hook and build-success-s3-publish-hook in
https://git.savannah.gnu.org/cgit/guix/build-coordinator.git/tree/guix-build-coordinator/hooks.scm
bordeaux.guix.gnu.org used to use the build-success-publish-hook to
populate a directory with the narinfo and nar files, and NGinx simply
served this directory, although now it uses the nar-herder to manage the
nars (it still doesn't use guix publish).
Maybe in the future the nar-herder could provide an easy utility for
people to serve and manage substitutes like this.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 987 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Static hosting of substitutes
2024-08-18 8:27 ` Christopher Baines
@ 2024-08-20 21:37 ` Ian Eure
0 siblings, 0 replies; 3+ messages in thread
From: Ian Eure @ 2024-08-20 21:37 UTC (permalink / raw)
To: Christopher Baines; +Cc: guix-devel
Christopher Baines <mail@cbaines.net> writes:
> [[PGP Signed Part:Undecided]]
> Ian Eure <ian@retrospec.tv> writes:
>
>> I’d like to provide substitutes for packages in my personal
>> channel.
>> The ideal setup for this would be for a machine on my internal
>> net to
>> perform the builds, then upload the results to another system
>> on the
>> open internet. That could be a machine running a web server
>> pointed
>> at a directory where the NARs get uploaded, or an S3-like
>> object
>> store, or something like that -- dirt simple, just shifting
>> bytes off
>> disk and out a socket.
>>
>> It seems that nothing like this exists, all the public
>> substitute
>> servers appear to use `guix publish'. That’s not an option for
>> me,
>> since it requires significantly more disk and compute than I
>> have on
>> any public-facing system, and I can’t justify the cost of
>> bigger
>> machines.
>>
>> What would it take to make a system like this work?
>
> I've run a few substitute servers like this, the required code
> is
> actually quite simple and the build coordinator includes the
> necessary
> bits in the form of some included hooks [1].
>
> 1: build-success-publish-hook and build-success-s3-publish-hook
> in
> https://git.savannah.gnu.org/cgit/guix/build-coordinator.git/tree/guix-build-coordinator/hooks.scm
>
> bordeaux.guix.gnu.org used to use the build-success-publish-hook
> to
> populate a directory with the narinfo and nar files, and NGinx
> simply
> served this directory, although now it uses the nar-herder to
> manage the
> nars (it still doesn't use guix publish).
>
Thank you for the pointer. Does this integrate with Cuirass at
all? I have a box running cuirass and guix publish which I’m
using for my internal builds & substitutes -- ideally, I’d like
NARs to get uploaded to a public host when Cuirass completes a
build.
Thanks,
— Ian
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-08-20 21:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-17 22:04 Static hosting of substitutes Ian Eure
2024-08-18 8:27 ` Christopher Baines
2024-08-20 21:37 ` Ian Eure
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.