diff options
author | Arun Isaac | 2022-09-02 17:28:52 +0530 |
---|---|---|
committer | Arun Isaac | 2022-09-02 17:28:52 +0530 |
commit | 2a22204665065517ed1d14ec2fc12f25378f795b (patch) | |
tree | be7d767381541194f70f4e2e3c6c7fe333f61b20 /containers/db-container.sh | |
parent | 22e2e4887eea8b4ade6da7c72d46f91d74d643e5 (diff) | |
download | genenetwork2-2a22204665065517ed1d14ec2fc12f25378f795b.tar.gz |
Add database container.
* containers/db-container.scm, containers/db-container.sh: New files.
Diffstat (limited to 'containers/db-container.sh')
-rwxr-xr-x | containers/db-container.sh | 12 |
1 files changed, 12 insertions, 0 deletions
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 |