diff options
-rw-r--r-- | genenetwork-local-container.scm | 15 |
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") |