about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMunyoki Kilyungi2025-07-04 15:33:18 +0300
committerMunyoki Kilyungi2025-07-22 10:06:30 +0300
commit7902dd0fb90969c336a2f66eafb221faf5323129 (patch)
tree3c8fb1c760065e5e6939542f2c13de1b409a5914
parent71dd60916b4d615792ba4bd7737acc6aae6142c8 (diff)
downloadgn-machines-7902dd0fb90969c336a2f66eafb221faf5323129.tar.gz
genenetwork-development: Set the profile and ssl-certs inside gexp.
-rw-r--r--genenetwork-development.scm16
1 files changed, 16 insertions, 0 deletions
diff --git a/genenetwork-development.scm b/genenetwork-development.scm
index 843c02b..466be11 100644
--- a/genenetwork-development.scm
+++ b/genenetwork-development.scm
@@ -496,6 +496,9 @@ server described by CONFIG, a <genenetwork-configuration> object."
             (setenv "GN2_PROFILE" #$(profile
                                      (content (package->development-manifest genenetwork2))
                                      (allow-collisions? #t)))
+            (setenv "REQUESTS_CA_BUNDLE" (string-append
+                                          (getenv "GN2_PROFILE")
+                                          "/etc/ssl/certs/ca-certificates.crt"))
             (setenv
              "GN2_SETTINGS"
              #$(mixed-text-file "gn2.conf"
@@ -542,6 +545,12 @@ server described by CONFIG, a <genenetwork-configuration> object."
 
               ;; Clone the latest genenetwork3 repository.
               (invoke "git" "clone" "--depth" "1" #$gn3-repository)
+              (setenv "GN3_PROFILE" #$(profile
+                                       (content (package->development-manifest genenetwork3))
+                                       (allow-collisions? #t)))
+              (setenv "REQUESTS_CA_BUNDLE" (string-append
+                                            (getenv "GN3_PROFILE")
+                                            "/etc/ssl/certs/ca-certificates.crt"))
               ;; Configure genenetwork3.
               (setenv "GN3_CONF"
                       #$(mixed-text-file "gn3.conf"
@@ -596,6 +605,13 @@ server described by CONFIG, a <genenetwork-configuration> object."
               ;; Clone the latest gn-auth repository.
               (invoke "git" "clone" "--depth" "1" #$gn-auth-repository)
               ;; Configure gn-auth.
+              (setenv "GN_AUTH_PROFILE" #$(profile
+                                           (content (package->development-manifest gn-auth))
+                                           (allow-collisions? #t)))
+              (setenv "REQUESTS_CA_BUNDLE" (string-append
+                                            (getenv "GN_AUTH_PROFILE")
+                                            "/etc/ssl/certs/ca-certificates.crt"))
+
               (setenv "GN_AUTH_CONF"
                       #$(mixed-text-file "gn-auth.conf"
                                          "AUTH_DB=\"" auth-db-path "\"\n"