about summary refs log tree commit diff
path: root/web/panettone/shell.nix
diff options
context:
space:
mode:
authorGriffin Smith <grfn@gws.fyi>2020-07-26T19·31-0400
committerglittershark <grfn@gws.fyi>2020-07-26T21·55+0000
commit696924b5ef11ca82ba8b66d67a9e85cab04ebf5e (patch)
treedf2f1fa9c2b51ac434da9485b64225f434ffbf35 /web/panettone/shell.nix
parentda8bc7635e746ba313801632c9001df9161d3605 (diff)
feat(web/panettone): Add dev helpers for postgres db r/1486
Add a docker-compose file and lorri-based direnv for aiding in
running and connecting to a postgres database during development of
panettone.

Change-Id: I319eee52b52cd48e1f3d2e32c558989768dc19d8
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1465
Tested-by: BuildkiteCI
Reviewed-by: tazjin <mail@tazj.in>
Reviewed-by: eta <eta@theta.eu.org>
Diffstat (limited to 'web/panettone/shell.nix')
-rw-r--r--web/panettone/shell.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/web/panettone/shell.nix b/web/panettone/shell.nix
new file mode 100644
index 000000000000..aeafc7afcd99
--- /dev/null
+++ b/web/panettone/shell.nix
@@ -0,0 +1,15 @@
+{ depot ? import ../.. {} }:
+
+with depot.third_party;
+
+mkShell {
+  buildInputs = [
+    docker-compose
+    postgresql
+  ];
+
+  PGPASSWORD = "password";
+  PGHOST = "localhost";
+  PGUSER = "panettone";
+  PGDATABASE = "panettone";
+}