diff options
| author | Frederick Muriuki Muriithi | 2026-06-04 10:47:06 -0500 |
|---|---|---|
| committer | Frederick Muriuki Muriithi | 2026-06-15 09:21:42 -0500 |
| commit | aecaac3d9764807d26c77614348f1331932214fd (patch) | |
| tree | 7b86a5217d1bcbd62275423e7106e0004d7de260 | |
| parent | c65bb3fece2c362655c68b3e80278339fe705527 (diff) | |
| download | gn-machines-aecaac3d9764807d26c77614348f1331932214fd.tar.gz | |
Extract the GeneNetwork system configuration.
The system configuration is useful in multiple places we need to build up scripts to intern into the store. It makes sense, in that context, to extract the configuration object and make it shareable.
| -rw-r--r-- | genenetwork-development.scm | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/genenetwork-development.scm b/genenetwork-development.scm index 941d2eb..3afa63d 100644 --- a/genenetwork-development.scm +++ b/genenetwork-development.scm @@ -1499,6 +1499,22 @@ gn-guile to display RDF pages." ;; Port on which gn-guile is listening (define %gn-guile-port 8091) +(define %genenetwork-configuration + (genenetwork-configuration + (gn2-port %genenetwork2-port) + (gn3-port %genenetwork3-port) + (gn-auth-port %gn-auth-port) + (gn2-secrets "/etc/genenetwork/conf/gn2") + (gn3-secrets "/etc/genenetwork/conf/gn3/secrets.py") + (gn-auth-secrets "/etc/genenetwork/conf/gn-auth") + (genotype-files "/export/data/genenetwork/genotype_files") + (sparql-endpoint (string-append "http://localhost:" + (number->string %virtuoso-sparql-port) + "/sparql")) + (data-directory "/export/data/genenetwork") + (xapian-db-path %xapian-directory))) + + (operating-system (host-name "genenetwork-development") (timezone "UTC") @@ -1575,20 +1591,7 @@ gn-guile to display RDF pages." (server-port 9081) (dirs-allowed (list "/var/lib/data")) (http-server-port %virtuoso-sparql-port))) - (service genenetwork-service-type - (genenetwork-configuration - (gn2-port %genenetwork2-port) - (gn3-port %genenetwork3-port) - (gn-auth-port %gn-auth-port) - (gn2-secrets "/etc/genenetwork/conf/gn2") - (gn3-secrets "/etc/genenetwork/conf/gn3/secrets.py") - (gn-auth-secrets "/etc/genenetwork/conf/gn-auth") - (genotype-files "/export/data/genenetwork/genotype_files") - (sparql-endpoint (string-append "http://localhost:" - (number->string %virtuoso-sparql-port) - "/sparql")) - (data-directory "/export/data/genenetwork") - (xapian-db-path %xapian-directory))) + (service genenetwork-service-type %genenetwork-configuration) (simple-service 'set-build-directory-permissions activation-service-type set-build-directory-permissions-gexp) |
