diff options
author | Arun Isaac | 2022-09-26 13:21:25 +0530 |
---|---|---|
committer | Arun Isaac | 2022-09-26 13:37:41 +0530 |
commit | bbdd74d2def319f53e40aab3a5e1dc50e5cc2388 (patch) | |
tree | 17de183da768c759493b0c66ac8bcd70f62eb3a4 /genenetwork-development.scm | |
parent | 3b7ac978875648171b485bed992b8976dc3d5e3e (diff) | |
download | gn-machines-bbdd74d2def319f53e40aab3a5e1dc50e5cc2388.tar.gz |
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.
Diffstat (limited to 'genenetwork-development.scm')
-rw-r--r-- | genenetwork-development.scm | 10 |
1 files changed, 9 insertions, 1 deletions
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 <development-server-configuration> 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) @@ -284,6 +288,9 @@ describing genenetwork2." (source #$%genotype-files) (target source)) (file-system-mapping + (source #$%xapian-db-path) + (target source)) + (file-system-mapping (source "/run/mysqld/mysqld.sock") (target source) (writable? #t))) @@ -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 |