aboutsummaryrefslogtreecommitdiff
path: root/genenetwork-development-deploy.sh
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2023-04-27 12:56:14 +0300
committerArun Isaac2023-05-05 20:38:53 +0100
commit2d648a1934d3c9f3861fba5f15482911af535aad (patch)
tree9ede343862c38f7ab25186c5d17bba3d160f02bc /genenetwork-development-deploy.sh
parentbc52bc93696e2d2f1e82d1b8ca5bc997493d87cb (diff)
downloadgn-machines-2d648a1934d3c9f3861fba5f15482911af535aad.tar.gz
Run migrations after tests and before restarting genenetwork3.
Add a CI job that applies the auth database migrations. This job is run after the genenetwork3 tests have passed but before genenetwork3 is restarted. * genenetwork-development-deploy.sh: Share /export/data/genenetwork-sqlite. * genenetwork-development.scm: Import yoyo-migrations from (gnu packages databases). (<genenetwork-configuration>)[auth-db-path]: New field. (genenetwork3-auth-migrations-genenetwork, genenetwork3-auth-migrations-laminar, genenetwork-activation): New functions. (genenetwork-projects): Add genenetwork3-auth-migrations CI job. Trigger this job after genenetwork3 tests. (genenetwork3-cd-gexp): Configure AUTH_DB_PATH in gn3.conf. (genenetwork-service-type): Extend activation-service-type with genenetwork-activation. (operating-system)[sudoers-file]: Permit the laminar user to run auth database migrations as the genenetwork user. Signed-off-by: Arun Isaac <arunisaac@systemreboot.net>
Diffstat (limited to 'genenetwork-development-deploy.sh')
-rwxr-xr-xgenenetwork-development-deploy.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/genenetwork-development-deploy.sh b/genenetwork-development-deploy.sh
index 2dc9135..85e0cbd 100755
--- a/genenetwork-development-deploy.sh
+++ b/genenetwork-development-deploy.sh
@@ -34,6 +34,7 @@ container_script=$(guix system container --network \
--share=/export2/guix-containers/genenetwork-development/var/log/cd=/var/log/cd \
--expose=/export/data/genenetwork \
--share=/export/data/genenetwork-xapian \
+ --share=/export/data/genenetwork-sqlite \
--share=/export/genenetwork-database-dump \
--share=/var/run/mysqld=/run/mysqld \
genenetwork-development.scm)