From 1cbfb96cfc63513115d61722e3c209a2472f0d51 Mon Sep 17 00:00:00 2001 From: Maksim Koryukov Date: Wed, 8 Aug 2018 17:18:05 +0500 Subject: [PATCH 1/2] docs: add docs about the volume mounted for configs --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index a3d2f33..6b64aba 100644 --- a/README.md +++ b/README.md @@ -29,3 +29,11 @@ docker run --rm -ti --name=pgcli \ --dbname=postgres \ --user=postgres ``` + +If you want to preserve **query-history, pgcli-log and pgcli-config** on the +host-machine, just mount the volume to the path `/root/.config/pgcli/` for +`pgcli` files: + +```bash +docker run -v $(pwd)/pgcli-cfg:/root/.config/pgcli/ --rm diyan/pgcli --help +``` From 3947849ff02c0dbbad969d4c2ca2d6ce6672e1a3 Mon Sep 17 00:00:00 2001 From: Maksim Koryukov Date: Wed, 8 Aug 2018 17:23:28 +0500 Subject: [PATCH 2/2] docs: update links, AUTHORS and LICENSE sections --- README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6b64aba..70dee91 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ # pgcli-docker -pgcli in a tiny Docker image powered by Alpine Linux + +[`pgcli`](https://www.pgcli.com/) in a tiny Docker image powered by [Alpine Linux](https://alpinelinux.org/) # How to use this image @@ -37,3 +38,11 @@ host-machine, just mount the volume to the path `/root/.config/pgcli/` for ```bash docker run -v $(pwd)/pgcli-cfg:/root/.config/pgcli/ --rm diyan/pgcli --help ``` + +# AUTHORS + +* [Alexey Diyan](http://diyan.github.io/) + +# LICENSE + +[MIT](https://github.com/diyan/pgcli-docker/blob/master/LICENSE)