summaryrefslogtreecommitdiff
path: root/historic/docker/debug
diff options
context:
space:
mode:
Diffstat (limited to 'historic/docker/debug')
-rw-r--r--historic/docker/debug/client/Dockerfile7
-rwxr-xr-xhistoric/docker/debug/client/dbstart.sh4
-rw-r--r--historic/docker/debug/docker-compose.yml9
-rw-r--r--historic/docker/debug/shell/Dockerfile4
4 files changed, 24 insertions, 0 deletions
diff --git a/historic/docker/debug/client/Dockerfile b/historic/docker/debug/client/Dockerfile
new file mode 100644
index 0000000..5c3f0ee
--- /dev/null
+++ b/historic/docker/debug/client/Dockerfile
@@ -0,0 +1,7 @@
+FROM debian:unstable
+
+RUN apt-get update && apt-get install -qqy postgresql
+
+COPY ./dbstart.sh /
+
+ENTRYPOINT ["./dbstart.sh"]
diff --git a/historic/docker/debug/client/dbstart.sh b/historic/docker/debug/client/dbstart.sh
new file mode 100755
index 0000000..a3d3726
--- /dev/null
+++ b/historic/docker/debug/client/dbstart.sh
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+su -c "createuser --host=dbcontainer root" postgres
+su -c "createdb --host=dbcontainer talertest" postgres
diff --git a/historic/docker/debug/docker-compose.yml b/historic/docker/debug/docker-compose.yml
new file mode 100644
index 0000000..390f461
--- /dev/null
+++ b/historic/docker/debug/docker-compose.yml
@@ -0,0 +1,9 @@
+version: '2'
+services:
+ client:
+ build: ./client
+ image: taler/debug/db
+ depends_on:
+ - dbcontainer
+ dbcontainer:
+ image: postgres
diff --git a/historic/docker/debug/shell/Dockerfile b/historic/docker/debug/shell/Dockerfile
new file mode 100644
index 0000000..24e8371
--- /dev/null
+++ b/historic/docker/debug/shell/Dockerfile
@@ -0,0 +1,4 @@
+FROM debian:unstable
+
+RUN apt-get update && apt-get install -qqy \
+ postgresql