diff options
| author | Mhd Sulhan <ms@kilabit.info> | 2015-09-04 23:47:17 +0700 |
|---|---|---|
| committer | Mhd Sulhan <ms@kilabit.info> | 2015-09-04 23:47:17 +0700 |
| commit | 6f3b3343536d3bf623e4fcd1d8cd83014dacc6d4 (patch) | |
| tree | 9dd2fe5da73cadf26e65e9f74f5a82e526ea91e7 | |
| parent | 31a3c7442c6ed62624edea0e8c104ab47f1ca49d (diff) | |
| download | arch-docker-6f3b3343536d3bf623e4fcd1d8cd83014dacc6d4.tar.xz | |
Script to run postgresql container using mounted host directory.
| -rwxr-xr-x | arch-postgresql/run.sh | 7 |
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 |
