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.scm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'genenetwork-development.scm') diff --git a/genenetwork-development.scm b/genenetwork-development.scm index 2de0ff4..852711f 100644 --- a/genenetwork-development.scm +++ b/genenetwork-development.scm @@ -177,6 +177,10 @@ CONFIG, a object, on startup." (define %genotype-files "/export/data/genenetwork/genotype_files") +;; Path to the xapian search index used by genenetwork2 +(define %xapian-db-path + "/export/data/genenetwork/xapian") + ;; Port on which genenetwork2 is listening (define %genenetwork2-port 9092) @@ -283,6 +287,9 @@ describing genenetwork2." (file-system-mapping (source #$%genotype-files) (target source)) + (file-system-mapping + (source #$%xapian-db-path) + (target source)) (file-system-mapping (source "/run/mysqld/mysqld.sock") (target source) @@ -305,7 +312,8 @@ describing genenetwork2." (content (package->development-manifest genenetwork2)) (allow-collisions? #t)) #$%genenetwork3-port - #$%genotype-files)))))) + #$%genotype-files + #$%xapian-db-path)))))) (define %genenetwork-accounts (list (user-group -- cgit v1.2.3