From 2a22204665065517ed1d14ec2fc12f25378f795b Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Fri, 2 Sep 2022 17:28:52 +0530 Subject: Add database container. * containers/db-container.scm, containers/db-container.sh: New files. --- containers/db-container.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 containers/db-container.sh (limited to 'containers/db-container.sh') diff --git a/containers/db-container.sh b/containers/db-container.sh new file mode 100755 index 00000000..bbe0247a --- /dev/null +++ b/containers/db-container.sh @@ -0,0 +1,12 @@ +#! /bin/sh -e + +# Find path to containers directory. +containers=$(dirname $0) + +# Create mariadb state directory if it does not exist. +mkdir -p $containers/mariadb-state + +# Build the container. +guix system container --network \ + --share=$containers/mariadb-state=/var/lib/mysql \ + $containers/db-container.scm -- cgit v1.2.3