From 75a26aae1f32a67ba12acd77d6db40c1dbdb606a Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Thu, 3 Sep 2020 08:50:40 -0500 Subject: gn: Provide genotypes folder in container. --- gn/packages/genenetwork.scm | 7 ++++++- gn/services/genenetwork.scm | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'gn') 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 "))))))))) -;; 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 -- cgit v1.2.3