about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMunyoki Kilyungi2024-05-06 19:35:11 +0300
committerMunyoki Kilyungi2024-05-14 21:22:03 +0300
commit033a051d4f241e1f2c86ff6b646347ab23b6e0d5 (patch)
tree7bbb81620136024432f6dcdaf25d2266bd3eda7e
parentae61cf94765365296116ec824c98f480ce5aa14c (diff)
downloadgn-machines-033a051d4f241e1f2c86ff6b646347ab23b6e0d5.tar.gz
services: genenetwork: Make llm-db file writeable.
Co-authored-by: Alexander_Kabui <alexanderkabua@gmail.com>
-rw-r--r--genenetwork/services/genenetwork.scm16
1 files changed, 12 insertions, 4 deletions
diff --git a/genenetwork/services/genenetwork.scm b/genenetwork/services/genenetwork.scm
index c1cb17e..a0b799f 100644
--- a/genenetwork/services/genenetwork.scm
+++ b/genenetwork/services/genenetwork.scm
@@ -189,7 +189,7 @@ G-expressions or numbers."
 described by @var{config}, a @code{<genenetwork-configuration>}
 object."
   (match-record config <genenetwork-configuration>
-    (genenetwork2 genenetwork3 gn-auth server-name gn-auth-server-name gn2-port gn3-port gn-auth-port sql-uri auth-db xapian-db genotype-files sparql-endpoint gn-sourcecode-directory gn3-data-directory gn2-secrets gn3-secrets gn-auth-secrets)
+    (genenetwork2 genenetwork3 gn-auth server-name gn-auth-server-name gn2-port gn3-port gn-auth-port sql-uri auth-db xapian-db genotype-files sparql-endpoint gn-sourcecode-directory gn3-data-directory gn2-secrets gn3-secrets gn-auth-secrets llm-db)
     ;; If we mapped only the mysqld.sock socket file, it would break
     ;; when the external mysqld server is restarted.
     (let* ((database-mapping (file-system-mapping
@@ -219,6 +219,7 @@ object."
                                        ("SOURCE_DIR" ,gn-sourcecode-directory)
                                        ("SPARQL_ENDPOINT" ,sparql-endpoint)
                                        ("SQL_URI" ,sql-uri)
+				       ("LLM_DB_PATH" ,llm-db)
                                        ("XAPIAN_DB_PATH" ,xapian-db)))))
            (gn-auth-conf (computed-file "gn-auth.conf"
                                         (configuration-file-gexp
@@ -265,7 +266,11 @@ object."
                               (target source))
                              (file-system-mapping
                               (source gn2-secrets)
-                              (target source)))))
+                              (target source))
+			     (file-system-mapping
+                              (source llm-db)
+                              (target source)
+			      (writable? #t)))))
             (gunicorn-app
              (name "genenetwork3")
              (package genenetwork3)
@@ -313,10 +318,13 @@ object."
                              (file-system-mapping
                               (source xapian-db)
                               (target source))
-                             (file-system-mapping
+			     (file-system-mapping
                               (source auth-db)
+                              (target source))
+			     (file-system-mapping
+                              (source llm-db)
                               (target source)
-                              (writable? #t)))))
+                              (writable? #t))
             (gunicorn-app
              (name "gn-auth")
              (package gn-auth)