diff options
author | Arun Isaac | 2022-11-07 19:55:07 +0530 |
---|---|---|
committer | Arun Isaac | 2022-11-07 19:55:07 +0530 |
commit | 3cebfb3e30e903851aefb2f997d8847d3f0ddee4 (patch) | |
tree | 06b9c8d690c064f01e8fefab2c1c14d7d5da146f /public-sparql-deploy.sh | |
parent | dfa338e353ec3305cfcf801149920a819f4ff335 (diff) | |
download | gn-machines-3cebfb3e30e903851aefb2f997d8847d3f0ddee4.tar.gz |
Add public facing SPARQL container.
* public-sparql-deploy.sh, public-sparql.scm: New files.
Diffstat (limited to 'public-sparql-deploy.sh')
-rwxr-xr-x | public-sparql-deploy.sh | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/public-sparql-deploy.sh b/public-sparql-deploy.sh new file mode 100755 index 0000000..685de28 --- /dev/null +++ b/public-sparql-deploy.sh @@ -0,0 +1,30 @@ +#! /bin/sh -e + +# genenetwork-machines --- Guix configuration for genenetwork machines +# Copyright © 2022 Arun Isaac <arunisaac@systemreboot.net> +# +# This file is part of genenetwork-machines. +# +# genenetwork-machines is free software: you can redistribute it +# and/or modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation, either version 3 of +# the License, or (at your option) any later version. +# +# genenetwork-machines is distributed in the hope that it will be +# useful, but WITHOUT ANY WARRANTY; without even the implied warranty +# of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with genenetwork-machines. If not, see +# <https://www.gnu.org/licenses/>. + +container_script=$(guix system container \ + --network \ + --verbosity=3 \ + --share=/var/guix-containers/public-sparql/var/lib/mysql=/var/lib/mysql \ + --share=/var/guix-containers/public-sparql/var/lib/virtuoso=/var/lib/virtuoso \ + public-sparql.scm) + +echo $container_script +sudo ln --force --symbolic $container_script /usr/local/bin/public-sparql-container |