aboutsummaryrefslogtreecommitdiff
path: root/uploader-deploy.sh
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2025-03-17 11:40:30 -0500
committerFrederick Muriuki Muriithi2025-03-21 08:39:46 -0500
commitf4f92b60aba85cf74cb3c38e95daa4e740e6afe4 (patch)
treeb68af5fe325d3351847510b59692a85dd333ff34 /uploader-deploy.sh
parent653edf57e4f945535a37928f7fc653363771a226 (diff)
downloadgn-machines-f4f92b60aba85cf74cb3c38e95daa4e740e6afe4.tar.gz
uploader-container: Abstract away paths in the container.
Break the implicit connection between the paths on the host system with the paths inside the container. This allows the operating-system definition to define its own paths, regardless of what is on the host. The builder script will explicitly do the mapping between host directories and container paths. We also collect all uploader-related directories under the host path `/export2/guix-containers/uploader` to make maintenance easier.
Diffstat (limited to 'uploader-deploy.sh')
-rwxr-xr-xuploader-deploy.sh13
1 files changed, 5 insertions, 8 deletions
diff --git a/uploader-deploy.sh b/uploader-deploy.sh
index 58bb9ec..a8d0913 100755
--- a/uploader-deploy.sh
+++ b/uploader-deploy.sh
@@ -43,23 +43,20 @@ container_script=$(guix system container \
--verbosity=3 \
--share=/export2/guix-containers/uploader/var/genenetwork=/var/genenetwork \
--share=/export2/guix-containers/uploader/var/lib/acme=/var/lib/acme \
- --share=/export2/guix-containers/uploader/var/lib/mysql=/var/lib/mysql \
+ --share=/export2/guix-containers/uploader/var/lib/redis=/var/lib/redis \
--share=/export2/guix-containers/uploader/var/lib/virtuoso=/var/lib/virtuoso \
--share=/export2/guix-containers/uploader/var/log=/var/log \
--share=/export2/guix-containers/uploader/etc/genenetwork=/etc/genenetwork \
- --share=/export/data/uploader/genenetwork-xapian=/export/data/genenetwork-xapian \
- --share=/export/data/uploader/genenetwork-sqlite=/export/data/genenetwork-sqlite \
- --expose=/export/data/uploader/genotype_files=/export/data/genenetwork/genotype_files \
- --expose=/export/data/uploader/genenetwork3 \
- --share=/export/data/uploader/gn-uploader \
- --share=/var/run/mysqld3307=/run/mysqld \
- --share=/export/data/uploader/genenetwork-gnqa=/var/lib/genenetwork-gnqa \
+ --share=/export2/guix-containers/uploader/var/lib/genenetwork-xapian=/var/lib/xapian \
+ --share=/export2/guix-containers/uploader/var/lib/genenetwork-sqlite=/var/lib/genenetwork-sqlite \
+ --share=/export2/guix-containers/uploader/var/lib/genenetwork-gnqa=/var/lib/genenetwork-gnqa \
--share=/var/run/mysqld3307=/run/mysqld \
--share=/export/data/gn-docs \
--share=/export2/guix-containers/uploader/tmp=/opt/gn/tmp \
--expose=/export2/guix-containers/uploader/data/virtuoso=/export/data/virtuoso/ \
--share=/export2/guix-containers/uploader/var/lib/gn-docs=/export/data/gn-docs \
--share=/export2/guix-containers/uploader/var/genenetwork/sessions=/var/genenetwork/sessions \
+ --share=/export/data/uploader/gn-uploader \
uploader.scm)
echo "${container_script}"