all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ricardo Wurmus <rekado@elephly.net>
To: Quiliro <quiliro@riseup.net>
Cc: help-guix@gnu.org
Subject: Re: installing a mirror for offline installation
Date: Fri, 26 May 2017 13:20:36 +0200	[thread overview]
Message-ID: <87fufrg8zf.fsf@elephly.net> (raw)
In-Reply-To: <20170525181902.2b70de9b@riseup.net>


Quiliro <quiliro@riseup.net> writes:

> I finally could install bare-bones.scm GuixSD working machine. Now i
> am interested in installing a mirror [of hydra] for offline
> installation. There is no telecommunications where I live. So I could
> bring the server to download substitutes and then take it back to my
> network for local download. I was told that an nginx mirror of hydra
> would cache only substitutes after they have been requested through
> it.

This is a little complicated.  We build software continuously with
Hydra, so what you want would only really work for one particular
version of Guix.

Hydra provides binaries not only for a single version of Guix, so you
cannot just copy everything.  What you *can* do, however, is this:

* provision a portable computer with lots of disk space

* check out the version of Guix you plan to install elsewhere

* build *every* package that you know you will need at the remote site.
  (This could be done by building a system configuration, for example.)
  This will lead to every needed store item to be in your local
  /gnu/store.  Note that you don’t have to build everything from source;
  you can download substitutes for most things.

* set up “guix publish” to share items from your store with others.
  Also make sure to export your local key and authorize it on the
  machines that should install Guix “offline”.

* On the machines that are to be installed override the substitute
  server to be the local address of your portable computer running “guix
  publish”.  This could be a local IP address.

* Make sure that the machines use the exact same version of Guix,
  e.g. the latest release.

As the machines are installed they will download substitutes from the
portable computer instead of trying to go online to talk to hydra.
Since the portable computer has all needed binaries in its store,
nothing has to be built from source.

All you need for this on the remote offline site is a LAN where your
portable computer acts as a substitute server.

Does this make sense?

--
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net

  reply	other threads:[~2017-05-26 11:20 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-25 23:19 installing a mirror for offline installation Quiliro
2017-05-26 11:20 ` Ricardo Wurmus [this message]
2017-05-26 18:12   ` Quiliro
2017-05-26 18:36     ` Ricardo Wurmus
2017-05-26 18:48       ` Quiliro
     [not found]       ` <20170526135013.167cdfaf@riseup.net>
2017-05-26 19:57         ` Ricardo Wurmus
2017-06-05 19:41           ` Quiliro
2017-06-07 14:57             ` Quiliro
2017-06-16 15:51           ` Quiliro
2017-06-05 19:25 ` Quiliro
2017-06-05 21:23   ` Ricardo Wurmus
2017-06-16 17:05   ` ng0
2017-06-16 17:40     ` Quiliro

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

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

  git send-email \
    --in-reply-to=87fufrg8zf.fsf@elephly.net \
    --to=rekado@elephly.net \
    --cc=help-guix@gnu.org \
    --cc=quiliro@riseup.net \
    /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.
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.