From 2c0c65a38c66b3eb1bb2e409c57b1e536f2181e8 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Wed, 28 Sep 2022 16:03:45 -0500 Subject: Updated information on building a guix profile using a channel on production * topics/guix-profiles.gmi: updated --- topics/guix-profiles.gmi | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/topics/guix-profiles.gmi b/topics/guix-profiles.gmi index 62abbba..efe6891 100644 --- a/topics/guix-profiles.gmi +++ b/topics/guix-profiles.gmi @@ -2,17 +2,27 @@ ## Executive summary -Put the following into a channels.scm file. +To build guix profiles that can run GN2+GN3 we use a so-called channel. + +Note that a recently tested channel can be fetched from cd.genenetwork.org. That should include the recent git hash values. + +Alternatively put the following into a channels.scm file. ``` (list (channel (name 'gn-bioinformatics) - (url "https://git.genenetwork.org/guix-bioinformatics/guix-bioinformatics") + (url "https://gitlab.com/genenetwork/guix-bioinformatics") + ;; (url "https://git.genenetwork.org/guix-bioinformatics/guix-bioinformatics") (branch "master"))) ``` Build a profile using ``` $ guix pull -C channels.scm -p ~/.guix-extra-profiles/genenetwork ``` +On production we do +``` +tux01:~$ ~/opt/guix-pull/bin/guix pull -C channels-latest.scm -p /usr/local/guix-profiles/gn-latest-20220928 +``` + Activate the newly built profile using ``` $ export GUIX_PROFILE=~/.guix-extra-profiles/genenetwork @@ -27,3 +37,7 @@ From time to time, updates to upstream Guix break our guix-bioinformatics channe To this end, we hard-code the guix-bioinformatics channel to depend on a specific commit of upstream Guix. This is why the recommended channels.scm file above does not include a %default-guix-channel. However, this comes with the drawback that your entire system will be stuck at that specific commit of upstream Guix. You will not be able to move forward until we decide to update the hard-coded upstream Guix commit in guix-bioinformatics. You may have other work that needs the latest Guix and this might not be what you want. So, we highly recommend using a separate `guix pull` profile specifically for GeneNetwork work, as described above. This scheme also comes with the added bonus that all members on the team and the continuous integration system will be using exactly the same Guix. + +## Notes + +We recently had to switch to gitlab because our git server went down on Penguin2. -- cgit v1.2.3