aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMunyoki Kilyungi2023-06-20 17:23:03 +0300
committerBonfaceKilz2023-06-26 16:34:27 +0300
commit2ef9cebfa7daaf79ccd1d3a336d19da78af83256 (patch)
tree6af35914c2df27eb2467f0f831b64375e533e6fc
parent396ec5d042c9883a847007b25300f7da90c2580b (diff)
downloadgn-machines-2ef9cebfa7daaf79ccd1d3a336d19da78af83256.tar.gz
Add virtuoso allowed dirs
-rwxr-xr-xgenenetwork-development-deploy.sh1
-rw-r--r--genenetwork-development.scm1
-rwxr-xr-xpublic-sparql-deploy.sh1
-rw-r--r--public-sparql.scm1
4 files changed, 4 insertions, 0 deletions
diff --git a/genenetwork-development-deploy.sh b/genenetwork-development-deploy.sh
index 85e0cbd..0edd2cb 100755
--- a/genenetwork-development-deploy.sh
+++ b/genenetwork-development-deploy.sh
@@ -32,6 +32,7 @@ container_script=$(guix system container --network \
--share=/export2/guix-containers/genenetwork-development/var/lib/tissue=/var/lib/tissue \
--share=/export2/guix-containers/genenetwork-development/var/lib/virtuoso=/var/lib/virtuoso \
--share=/export2/guix-containers/genenetwork-development/var/log/cd=/var/log/cd \
+ --share=/export/data/genenetwork-virtuoso=/var/lib/data \
--expose=/export/data/genenetwork \
--share=/export/data/genenetwork-xapian \
--share=/export/data/genenetwork-sqlite \
diff --git a/genenetwork-development.scm b/genenetwork-development.scm
index 386e401..c10af91 100644
--- a/genenetwork-development.scm
+++ b/genenetwork-development.scm
@@ -1063,6 +1063,7 @@ reverse proxy tissue."
(number-of-buffers 4000000)
(maximum-dirty-buffers 3000000)
(server-port 9081)
+ (dirs-allowed "/var/lib/data")
(http-server-port %virtuoso-sparql-port)))
(service genenetwork-service-type
(genenetwork-configuration
diff --git a/public-sparql-deploy.sh b/public-sparql-deploy.sh
index f94dc82..bc4c23a 100755
--- a/public-sparql-deploy.sh
+++ b/public-sparql-deploy.sh
@@ -24,6 +24,7 @@ container_script=$(guix system container \
--verbosity=3 \
--share=/export2/guix-containers/public-sparql/var/lib/mysql=/var/lib/mysql \
--share=/export2/guix-containers/public-sparql/var/lib/virtuoso=/var/lib/virtuoso \
+ --share=/export/data/genenetwork-virtuoso=/var/lib/data \
public-sparql.scm)
echo $container_script
diff --git a/public-sparql.scm b/public-sparql.scm
index 2827f66..9781b5d 100644
--- a/public-sparql.scm
+++ b/public-sparql.scm
@@ -54,6 +54,7 @@ SPARQL endpoint is listening on."
(server-port %virtuoso-port)
(http-server-port %sparql-port)
(number-of-buffers 4000000)
+ (dirs-allowed "/var/lib/data")
(maximum-dirty-buffers 3000000)))
(service nginx-service-type
(nginx-configuration