From 033a051d4f241e1f2c86ff6b646347ab23b6e0d5 Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Mon, 6 May 2024 19:35:11 +0300 Subject: services: genenetwork: Make llm-db file writeable. Co-authored-by: Alexander_Kabui --- genenetwork/services/genenetwork.scm | 16 ++++++++++++---- 1 file 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{} object." (match-record config - (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) -- cgit v1.2.3