aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMhd Sulhan <ms@kilabit.info>2015-09-04 23:47:17 +0700
committerMhd Sulhan <ms@kilabit.info>2015-09-04 23:47:17 +0700
commit6f3b3343536d3bf623e4fcd1d8cd83014dacc6d4 (patch)
tree9dd2fe5da73cadf26e65e9f74f5a82e526ea91e7
parent31a3c7442c6ed62624edea0e8c104ab47f1ca49d (diff)
downloadarch-docker-6f3b3343536d3bf623e4fcd1d8cd83014dacc6d4.tar.xz
Script to run postgresql container using mounted host directory.
-rwxr-xr-xarch-postgresql/run.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch-postgresql/run.sh b/arch-postgresql/run.sh
new file mode 100755
index 0000000..5725714
--- /dev/null
+++ b/arch-postgresql/run.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+## create initial directory.
+mkdir -p data
+
+## run docker using host data directory as postgresql dictionary files.
+docker run --rm -v $(pwd)/data:/var/lib/postgres -it sulhan/arch-postgresql