aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-12-06 16:05:35 -0600
committerFrederick Muriuki Muriithi2024-12-06 16:05:35 -0600
commit10dafe26eb91a44775d7dcb0f9e12df72f6068fc (patch)
tree7ae42a21df3e98a6cecad8ac2891e7099202416f
parent0273e4844f8e14d5b9fe4fd715ff9b87c1bb1e94 (diff)
downloadgn-machines-main.tar.gz
CI/CD: Update database URI - add socket path.HEADmain
-rw-r--r--genenetwork-development.scm10
1 files changed, 5 insertions, 5 deletions
diff --git a/genenetwork-development.scm b/genenetwork-development.scm
index 5894cef..32259d6 100644
--- a/genenetwork-development.scm
+++ b/genenetwork-development.scm
@@ -222,7 +222,7 @@ executed."
(setenv "GN3_LOCAL_URL" (string-append "http://localhost:" (number->string #$gn3-port)))
(setenv "GENENETWORK_FILES" #$genotype-files)
(setenv "HOME" "/tmp")
- (setenv "SQL_URI" "mysql://webqtlout:webqtlout@localhost/db_webqtl")
+ (setenv "SQL_URI" "mysql://webqtlout:webqtlout@localhost/db_webqtl?unix_socket=/run/mysqld/mysqld.sock")
(chdir "genenetwork2")
(apply invoke '#$test-command))))))
@@ -252,7 +252,7 @@ genenetwork3 source from the latest commit of @var{project}."
(setenv "PYTHONPATH" (getcwd))
(invoke "./scripts/index-genenetwork" "create-xapian-index"
xapian-build-directory
- "mysql://webqtlout:webqtlout@localhost/db_webqtl"
+ "mysql://webqtlout:webqtlout@localhost/db_webqtl?unix_socket=/run/mysqld/mysqld.sock"
"http://localhost:9082/sparql")
;; Stop genenetwork3, replace old xapian index and
;; start genenetwork3.
@@ -297,7 +297,7 @@ genenetwork3 source from the latest commit of @var{project}."
(system* (string-append gn3-dir "/scripts/index-genenetwork")
"is-data-modified"
#$%xapian-directory
- "mysql://webqtlout:webqtlout@localhost/db_webqtl"
+ "mysql://webqtlout:webqtlout@localhost/db_webqtl?unix_socket=/run/mysqld/mysqld.sock"
"http://localhost:9082/sparql"))))
(setenv "LAMINAR_REASON" "Nightly xapian index rebuild")
(invoke #$(file-append laminar "/bin/laminarc")
@@ -462,7 +462,7 @@ server described by CONFIG, a <genenetwork-configuration> object."
#$(string-append "http://localhost:"
(number->string gn3-port)))
(setenv "GENENETWORK_FILES" #$genotype-files)
- (setenv "SQL_URI" "mysql://webqtlout:webqtlout@localhost/db_webqtl")
+ (setenv "SQL_URI" "mysql://webqtlout:webqtlout@localhost/db_webqtl?unix_socket=/run/mysqld/mysqld.sock")
(setenv "HOME" "/tmp")
(setenv "NO_REDIS" "no-redis")
(setenv "RUST_BACKTRACE" "1")
@@ -478,7 +478,7 @@ server described by CONFIG, a <genenetwork-configuration> object."
"\"\n"
"GN_SERVER_URL=\"https://cd.genenetwork.org/api3/\"\n"
"AUTH_SERVER_URL=\"https://auth-cd.genenetwork.org/\"\n"
- "SQL_URI=\"mysql://webqtlout:webqtlout@localhost/db_webqtl\"\n"
+ "SQL_URI=\"mysql://webqtlout:webqtlout@localhost/db_webqtl?unix_socket=/run/mysqld/mysqld.sock\"\n"
"SSL_PRIVATE_KEY=\"" gn2-secrets "/gn2-ssl-private-key.pem\"\n"
"AUTH_SERVER_SSL_PUBLIC_KEY=\"" gn2-secrets "/gn-auth-ssl-public-key.pem\"\n"))