aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEfraim Flashner2020-09-03 08:50:40 -0500
committerEfraim Flashner2020-09-03 08:50:40 -0500
commit75a26aae1f32a67ba12acd77d6db40c1dbdb606a (patch)
tree2391889c1c044680317bb8dfe33e7e0c5ffb2723
parent1775e961db8690556793aea2966fab5ac976f277 (diff)
downloadguix-bioinformatics-75a26aae1f32a67ba12acd77d6db40c1dbdb606a.tar.gz
gn: Provide genotypes folder in container.
-rw-r--r--gn/packages/genenetwork.scm7
-rw-r--r--gn/services/genenetwork.scm2
2 files changed, 7 insertions, 2 deletions
diff --git a/gn/packages/genenetwork.scm b/gn/packages/genenetwork.scm
index b534ae7..be56676 100644
--- a/gn/packages/genenetwork.scm
+++ b/gn/packages/genenetwork.scm
@@ -786,8 +786,13 @@ written in C")
;; Where the database is located:
(("tux01") "localhost"))
;(("tux01.uthsc.edu") "lily.uthsc.edu"))
- ;; This directory is expected to be writable
+ ;; This directory is expected to be writable.
+ ;; /tmp is private inside the container.
(symlink "/tmp" "web/tmp")
+ ;; We mount the genotypes folder in the OS-config and
+ ;; provide the symlink to that point in the package.
+ ;; And now the directory is magically available!
+ (symlink "/gnshare/gn/web/genotypes" "web/genotypes")
#t)))
(add-after 'unpack 'use-local-links
(lambda _
diff --git a/gn/services/genenetwork.scm b/gn/services/genenetwork.scm
index 94769fa..d72590d 100644
--- a/gn/services/genenetwork.scm
+++ b/gn/services/genenetwork.scm
@@ -136,5 +136,5 @@ NameVirtualHost *:8042
PythonHandler mod_python.testhandler
</Location>")))))))))
-;; guix system container -L /path/to/guix-past/modules/ -L /path/to/guix-bioinformatics/ /path/to/guix-bioinformatics/gn/services/genenetwork.scm --network
+;; guix system container -L /path/to/guix-past/modules/ -L /path/to/guix-bioinformatics/ /path/to/guix-bioinformatics/gn/services/genenetwork.scm --network --expose=/gnshare/gn/web/genotypes
;; xdg-open http://localhost:8042