aboutsummaryrefslogtreecommitdiff
path: root/production-deploy.sh
diff options
context:
space:
mode:
authorArun Isaac2024-01-03 00:44:41 +0000
committerArun Isaac2024-01-03 00:44:41 +0000
commit9b38443da7c4075cda666726f04f0daff1433dc1 (patch)
tree866166cce1a53319943b2e3ac594f32a102fb285 /production-deploy.sh
parent32afafc93077e9d6d57354540967dfa1a42cb9b1 (diff)
downloadgn-machines-9b38443da7c4075cda666726f04f0daff1433dc1.tar.gz
Add GeneNetwork service to production container.
* production.scm: Import (genenetwork services genenetwork), (forge acme), (forge nginx) and (forge socket). Import shepherd from (gnu packages admin). (operating-system)[sudoers-file]: Allow acme user to restart nginx. (services): Add forge-nginx, acme and genenetwork services.
Diffstat (limited to 'production-deploy.sh')
-rwxr-xr-xproduction-deploy.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/production-deploy.sh b/production-deploy.sh
index c774a31..d87a459 100755
--- a/production-deploy.sh
+++ b/production-deploy.sh
@@ -1,7 +1,7 @@
#! /bin/sh -e
# genenetwork-machines --- Guix configuration for genenetwork machines
-# Copyright © 2022 Arun Isaac <arunisaac@systemreboot.net>
+# Copyright © 2022, 2024 Arun Isaac <arunisaac@systemreboot.net>
#
# This file is part of genenetwork-machines.
#
@@ -22,9 +22,17 @@
# Build and install genenetwork production container on tux02.
container_script=$(guix system container \
+ --network \
+ --load-path . \
--verbosity=3 \
+ --share=/export2/guix-containers/genenetwork/var/lib/acme=/var/lib/acme \
--share=/export2/guix-containers/genenetwork/var/lib/mysql=/var/lib/mysql \
--share=/export2/guix-containers/genenetwork/var/lib/virtuoso=/var/lib/virtuoso \
+ --expose=/export2/guix-containers/genenetwork/etc/genenetwork=/etc/genenetwork \
+ --expose=/export/data/genenetwork-xapian \
+ --share=/export/data/genenetwork-sqlite \
+ --expose=/export/data/genenetwork/genotype_files \
+ --share=/var/run/mysqld=/run/mysqld \
production.scm)
echo $container_script