From 7cc37bf2efba6873fccd0f1756c89d25400afd47 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Fri, 9 Sep 2016 08:34:36 +0200 Subject: Doc: note on guix paths --- doc/README.org | 46 ++++++++++++++++++++++++++-------------------- 1 file changed, 26 insertions(+), 20 deletions(-) (limited to 'doc/README.org') diff --git a/doc/README.org b/doc/README.org index b3c78f29..aa05654f 100644 --- a/doc/README.org +++ b/doc/README.org @@ -117,7 +117,7 @@ cd guix-gn-latest ** Step 3: Authorize the GN Guix server GN2 has its own GNU Guix binary distribution server. To trust it you have -to add the following key +to add the following key #+begin_src scheme (public-key @@ -136,9 +136,9 @@ guix archive --authorize and hit Ctrl-D. -Now you can use the substitute server to install GN2 binaries. +Now you can use the substitute server to install GN2 binaries. -** Step 4: Install and run GN2 +** Step 4: Install and run GN2 Since this is a quick and dirty install we are going to override the GNU Guix package path by pointing the package path to our repository: @@ -208,7 +208,7 @@ https://s3.amazonaws.com/genenetwork2/db_webqtl_s.zip Check the md5sum. After installation inflate the database binary in the MySQL directory -(this installation path is subject to change soon) +(this installation path is subject to change soon) : chown -R mysql:mysql db_webqtl_s/ : chmod 700 db_webqtl_s/ @@ -271,10 +271,10 @@ R_LIBS_SITE are set) from the information given by guix: Inside the repository: : cd genenetwork2 -: ./bin/genenetwork2 +: ./bin/genenetwork2 -Will fire up your local repo http://localhost:5003/ using the -settings in ./etc/default_settings.py. These settings may +Will fire up your local repo http://localhost:5003/ using the +settings in ./etc/default_settings.py. These settings may not reflect your system. To override settings create your own from a copy of default_settings.py and pass it into GN2 with @@ -348,7 +348,7 @@ Make dirs Add users -: adduser nobody ; addgroup nobody +: adduser nobody ; addgroup nobody Run nginx @@ -392,6 +392,12 @@ Make a note of the paths with ./pre-inst-env guix package --search-paths #+end_src bash +or this should also work if guix is installed + +#+begin_src bash +guix package --search-paths +#+end_src bash + After setting the paths for the server #+begin_src bash @@ -413,7 +419,7 @@ genenetwork2 will start the default server which listens on port 5003, i.e., http://localhost:5003/. -OK, we are where we were before with step 4. Only difference is that we +OK, we are where we were before with step 4. Only difference is that we used our own compiled guix server. * Trouble shooting @@ -433,7 +439,7 @@ On one system: : export R_LIBS_SITE="$HOME/.guix-profile/site-library/" : export GEM_PATH="$HOME/.guix-profile/lib/ruby/gems/2.2.0" -and perhaps a few more. +and perhaps a few more. ** ERROR: can not find directory $HOME/gn2_data The default settings file looks in your $HOME/gn2_data. Since these @@ -466,7 +472,7 @@ and a download of the test database. set to the ones in ~/.guix-profile/ good, and you are in gn-latest-guix repo [07:06] yep [07:07] - git log shows + git log shows Author: David Thompson Date: Sun Mar 27 21:20:19 2016 -0400 @@ -488,7 +494,7 @@ genenetwork2-files-small 1.0 out ../guix-bioinformatics/gn/packages/g hah, I don't have screen installed yet [07:11] comes with guix ;) [07:12] no worries, you can run it any way you want - $HOME/.guix-profile/bin/guix-daemon --build-users-group=guixbuild + $HOME/.guix-profile/bin/guix-daemon --build-users-group=guixbuild then something's weird, because it says I don't have it oh, you need to install it first [07:13] guix package -A screen @@ -546,11 +552,11 @@ The following derivations would be built: https://github.com/pjotrp/guix-notes/blob/master/REPRODUCIBLE.org this is exactly what we are doing now alrighty [07:35] - To see if a remote server has a guix server running it should respond + To see if a remote server has a guix server running it should respond [07:36] lynx http://guix.genenetwork.org:8080 --dump Resource not found: / - + you see that? yes [07:37] good. The main hydra server is too slow. So on my laptop I forced @@ -558,7 +564,7 @@ The following derivations would be built: env GUIX_PACKAGE_PATH=../guix-bioinformatics/ ./pre-inst-env guix package -i genenetwork2 --dry-run --substitute-urls="http://mirror.hydra.gnu.org" - + the list looks the same to me [07:40] me too note that some packages will be built and some downloaded, right? @@ -688,7 +694,7 @@ The following derivations would be built: everything should be pre-built from guix.genenetwork.org you are downloading? yes [09:15] - cool. Maybe an idea to set up a server + cool. Maybe an idea to set up a server for your own use Stuck at downloading preprocesscore should not [09:24] @@ -735,7 +741,7 @@ The following derivations would be built: should be at /gnu/store/y1f3r2xs3fhyadd46nd2aqbr2p9qv2ra-r-biocpreprocesscore-1.32.0 [09:33] - + pjotrp: Possibly we should use the archive utility of Guix to do deployment to avoid such out-of-sync differences :) [09:34] maybe. I did not get archive to update profiles properly [09:37] @@ -802,7 +808,7 @@ The following derivations would be built: but do not checkout that genetwork2_diet we reverted to the main tree clone git@github.com:genenetwork/genenetwork2.git [09:53] - instead and checkout the staging branch + instead and checkout the staging branch that is effectively my branch [09:54] when that is done you should be able to fire up the webserver from there [09:55] @@ -825,7 +831,7 @@ The following derivations would be built: yep that can also run on remote files over ssh that's an alternative - kudos for using emacs :), wdyt user03 + kudos for using emacs :), wdyt user03 79 minutes to go downloading the db user02: sorry about that [09:59] it is 2GB @@ -850,7 +856,7 @@ The following derivations would be built: --substitute-urls="http://guix.genenetwork.org:8080" [10:08] elixir 1.2.3 out ../guix-bioinformatics/gn/packages/elixir.scm:31:2 - + I am building it on guix.genenetwork.org right now [10:09] nice [10:10] #+end_src -- cgit v1.2.3