aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/README.md4
-rw-r--r--scripts/precompute/.guix-shell10
-rw-r--r--scripts/precompute/README.md3
3 files changed, 17 insertions, 0 deletions
diff --git a/scripts/README.md b/scripts/README.md
new file mode 100644
index 0000000..10ec38c
--- /dev/null
+++ b/scripts/README.md
@@ -0,0 +1,4 @@
+# Tooling and scripts
+
+In this directory we store scripts that run independently of the web
+service.
diff --git a/scripts/precompute/.guix-shell b/scripts/precompute/.guix-shell
new file mode 100644
index 0000000..08c74f9
--- /dev/null
+++ b/scripts/precompute/.guix-shell
@@ -0,0 +1,10 @@
+#!/bin/bash
+#
+# run with options '-- ./webserver.scm 8091' e.g.
+# . .guix-shell -- guile -L .. --fresh-auto-compile --listen=1970 -e main ./webserver.scm 8091
+
+echo "Create a shell to run tools. In the container"
+echo "mkdir /usr/bin -p"
+echo "ln -s \$GUIX_ENVIRONMENT/bin/env /usr/bin/env"
+
+guix shell -C -F --network coreutils guile guile-dbi guile-dbd-mysql guile-fibers guile-json guile-gnutls guile-readline guile-redis openssl nss-certs $*
diff --git a/scripts/precompute/README.md b/scripts/precompute/README.md
new file mode 100644
index 0000000..53f846e
--- /dev/null
+++ b/scripts/precompute/README.md
@@ -0,0 +1,3 @@
+# Precompute
+
+Some work on precompute is documented [here](https://issues.genenetwork.org/topics/systems/mariadb/precompute-mapping-input-data). This is WIP.