aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Isaac2022-08-29 15:05:05 +0530
committerArun Isaac2022-08-29 15:05:05 +0530
commit08010c102176d91b956221d59839cc0b180eb323 (patch)
tree09d8c91a112bd0953806fc5206c04ad176e4290d
parent6d75f6c1d2b976618d8eda25f90f12768450a8a9 (diff)
downloadgn-machines-08010c102176d91b956221d59839cc0b180eb323.tar.gz
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.
-rwxr-xr-xproduction-deploy.sh1
-rw-r--r--production.scm14
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 @@
;;; <https://www.gnu.org/licenses/>.
(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)))