diff options
author | Shepherd on Tux02 | 2024-06-20 07:26:21 -0500 |
---|---|---|
committer | Shepherd on Tux02 | 2024-06-20 07:26:21 -0500 |
commit | f0f8dc84eca7088177797f84db05314537615c77 (patch) | |
tree | 5a7408a19c92b0c4d536916269425d883c4f06ca /gn/services/bh20-seq-resource-container.scm | |
parent | 951e77b10c84889f29c1f2322087c796cedb375a (diff) | |
parent | 48af9393cf186230e08b0fa6f7f443bc818408d2 (diff) | |
download | guix-bioinformatics-f0f8dc84eca7088177797f84db05314537615c77.tar.gz |
Merge branch 'master' of https://gitlab.com/genenetwork/guix-bioinformatics
Diffstat (limited to 'gn/services/bh20-seq-resource-container.scm')
-rw-r--r-- | gn/services/bh20-seq-resource-container.scm | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/gn/services/bh20-seq-resource-container.scm b/gn/services/bh20-seq-resource-container.scm index cb77cdb..e0eccf7 100644 --- a/gn/services/bh20-seq-resource-container.scm +++ b/gn/services/bh20-seq-resource-container.scm @@ -5,6 +5,7 @@ (guix modules) ((guix packages) #:select (package-source)) (guix records) + (guix build-system python) ; for python-version from guix/build/python-build-system.scm (ice-9 match)) (use-service-modules shepherd) (use-package-modules compression python python-web) @@ -14,7 +15,7 @@ make-covid19-pubseq-configuration covid19-pubseq-configuration? (package covid19-pubseq-configuration-package ; package - (default bh20-seq-resource)) + (default bh20-seq-resource-for-service)) (deploy-directory covid19-pubseq-deploy-directory ; string (default "/srv/http")) (port covid19-pubseq-configuration-port ; string @@ -58,9 +59,10 @@ #:directory #$deploy-directory #:log-file "/var/log/covid19-pubseq.log" #:environment-variables + ;(let (pyversion (python-version (@ (gnu packages python) python))) '("TMPDIR=/export/tmp" - ;; TODO: Don't hardcode python version! - "PYTHONPATH=/run/current-system/profile/lib/python3.8/site-packages") + "PYTHONPATH=/run/current-system/profile/lib/python3.9/site-packages") + ; (string-append "PYTHONPATH=/run/current-system/profile/lib/python" pyversion "/site-packages"))) ;#:mappings ;(list (file-system-mapping ; (source "/export/tmp") @@ -68,7 +70,7 @@ ; (writable? #t)) ; (file-system-mapping ; ;; TODO: Don't hardcode python version! - ; (source "/run/current-system/profile/lib/python3.8/site-packages") + ; (source "/run/current-system/profile/lib/python3.9/site-packages") ; (target source))) )) (stop #~(make-kill-destructor)))))))) @@ -104,3 +106,5 @@ (packages '()) (services (list (service covid19-pubseq-service-type)))) + +;; guix system container /home/shepherd/guix-bioinformatics/gn/services/bh20-seq-resource-container.scm --share=/export/tmp=/export/tmp --network |