From bbdd74d2def319f53e40aab3a5e1dc50e5cc2388 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Mon, 26 Sep 2022 13:21:25 +0530 Subject: Set up xapian search index for genenetwork2 CD. * genenetwork-development.scm (%xapian-db-path): New variable. (genenetwork2-shepherd-service)[start]: Share %xapian-db-path with the container. (%default-genenetwork2-configuration)[runner]: Pass %xapian-db-path to CD runner. * genenetwork/development-helper.scm (genenetwork2-runner-gexp): Accept xapian-db-path argument and set XAPIAN_DB_PATH environment variable. * genenetwork-development-deploy.sh: Expose /export/data/genenetwork/xapian in the container. --- genenetwork/development-helper.scm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'genenetwork') diff --git a/genenetwork/development-helper.scm b/genenetwork/development-helper.scm index 7899630..353bf1a 100644 --- a/genenetwork/development-helper.scm +++ b/genenetwork/development-helper.scm @@ -101,13 +101,14 @@ with genenetwork3 dependencies." (invoke "pylint" "gn3")) (mkdir-p #$output))))) -(define (genenetwork2-runner-gexp genenetwork2-source profile gn3-port genotype-files) +(define (genenetwork2-runner-gexp genenetwork2-source profile gn3-port + genotype-files xapian-db-path) "Return a G-expression that runs the genenetwork2 server for GENENETWORK2-SOURCE in PROFILE. GENENETWORK2-SOURCE is a checkout of the genenetwork2 source code. PROFILE is a profile with genenetwork2 dependencies. GN3-PORT is the port on which a local instance of genenetwork3 is listening. GENOTYPE-FILES is the path to genotype -files." +files. XAPIAN-DB-PATH is the path to the xapian search index." (with-imported-modules '((guix build utils)) (with-profile profile #~(begin @@ -128,6 +129,7 @@ files." (setenv "SQL_URI" "mysql://webqtlout:webqtlout@localhost/db_webqtl") (setenv "HOME" "/tmp") (setenv "NO_REDIS" "no-redis") + (setenv "XAPIAN_DB_PATH" #$xapian-db-path) (invoke "sh" "bin/genenetwork2"))))))) (define (genenetwork3-runner-gexp genenetwork3-source profile) -- cgit v1.2.3