about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMunyoki Kilyungi2025-07-10 17:31:42 +0300
committerMunyoki Kilyungi2025-07-10 17:31:42 +0300
commit0d09a970932956a4e6a07c26afdba27f50ab3738 (patch)
tree09da9e487daf109b92aca6632d4e68b9ac764a6d
parent603b3d573850c0cf2624db558fcfa7825f1fd9fa (diff)
downloadgn-machines-0d09a970932956a4e6a07c26afdba27f50ab3738.tar.gz
gn-local-development-container: Properly set "REQUESTS_CA_BUNDLE". gn-local-development-container
-rw-r--r--genenetwork-local-container.scm15
1 files changed, 15 insertions, 0 deletions
diff --git a/genenetwork-local-container.scm b/genenetwork-local-container.scm
index 2c1dc89..d5848b7 100644
--- a/genenetwork-local-container.scm
+++ b/genenetwork-local-container.scm
@@ -107,6 +107,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"))
            (unless (file-exists? "/etc/genenetwork/conf/gn2.conf")
              (with-output-to-file "/etc/genenetwork/conf/gn2.conf"
                (lambda ()
@@ -169,6 +172,12 @@ server described by CONFIG, a <genenetwork-configuration> object."
                                (content (package->development-manifest genenetwork3))
                                (allow-collisions? #t))
                               "/bin/Rscript\"\n")))))
+            (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"))
             (setenv "GN3_CONF" "/etc/genenetwork/conf/gn3.conf")
             (setenv "GN3_SECRETS" #$gn3-secrets)
             (setenv "HOME" "/tmp")
@@ -206,6 +215,12 @@ server described by CONFIG, a <genenetwork-configuration> object."
                                              (content (package->development-manifest gn-auth))
                                              (allow-collisions? #t))
                                             "\"\n")))))
+              (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" "/etc/genenetwork/conf/gn-auth.conf")
               (setenv "HOME" "/tmp")
               (setenv "AUTHLIB_INSECURE_TRANSPORT" "true")