From 08010c102176d91b956221d59839cc0b180eb323 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Mon, 29 Aug 2022 15:05:05 +0530 Subject: Run mysql server in production. * production.scm: Import (gnu services databases). (operating-system)[services]: Add mysql-service-type. * production-deploy.sh: Share mysql directory with container. --- production-deploy.sh | 1 + production.scm | 14 ++++++++------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/production-deploy.sh b/production-deploy.sh index c2c5055..0dfd042 100755 --- a/production-deploy.sh +++ b/production-deploy.sh @@ -23,6 +23,7 @@ container_script=$(guix system container \ --verbosity=3 \ + --share=/var/guix-containers/genenetwork/var/lib/mysql=/var/lib/mysql \ --share=/var/guix-containers/genenetwork/var/lib/virtuoso=/var/lib/virtuoso \ production.scm) diff --git a/production.scm b/production.scm index dba9074..a8ceecf 100644 --- a/production.scm +++ b/production.scm @@ -18,7 +18,8 @@ ;;; . (use-modules (gnu) - (gn services databases)) + (gn services databases) + (gnu services databases)) (operating-system (host-name "genenetwork") @@ -30,8 +31,9 @@ (file-systems %base-file-systems) (users %base-user-accounts) (packages %base-packages) - (services (cons (service virtuoso-service-type - (virtuoso-configuration - (server-port 8891) - (http-server-port 8892))) - %base-services))) + (services (cons* (service mysql-service-type) + (service virtuoso-service-type + (virtuoso-configuration + (server-port 8891) + (http-server-port 8892))) + %base-services))) -- cgit v1.2.3