From b56a5fd91e753ff30838da52b9246667eb98a065 Mon Sep 17 00:00:00 2001 From: Sameer Naik Date: Wed, 17 Jun 2015 12:23:04 +0530 Subject: [PATCH] release 9.4-1 --- Changelog.md | 3 ++- README.md | 24 ++++++++++++------------ 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/Changelog.md b/Changelog.md index c2da971..9496863 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,8 +1,9 @@ # Changelog -**latest** +**9.4-1** - start: removed `pwfile` logic - init: added `USERMAP_*` configuration options +- base image update to fix SSL vulnerability **9.4** - postgresql: upgrade to 9.4 diff --git a/README.md b/README.md index 6be0ea5..c20036d 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,7 @@ In your issue report please make sure you provide the following information: Pull the latest version of the image from the docker index. This is the recommended method of installation as it is easier to update image in the future. These builds are performed by the **Docker Trusted Build** service. ```bash -docker pull sameersbn/postgresql:9.4 +docker pull sameersbn/postgresql:9.4-1 ``` Alternately you can build the image yourself. @@ -76,7 +76,7 @@ docker build -t="$USER/postgresql" . Run the postgresql image ```bash -docker run --name postgresql -d sameersbn/postgresql:9.4 +docker run --name postgresql -d sameersbn/postgresql:9.4-1 ``` The simplest way to login to the postgresql container as the administrative `postgres` user is to use the `docker exec` command to attach a new process to the running container and connect to the postgresql server over the unix socket. @@ -94,7 +94,7 @@ To create a new user you should specify the `DB_USER` and `DB_PASS` variables. T ```bash docker run --name postgresql -d \ -e 'DB_USER=dbuser' -e 'DB_PASS=dbpass' \ - sameersbn/postgresql:9.4 + sameersbn/postgresql:9.4-1 ``` **NOTE** @@ -105,10 +105,10 @@ Similarly, you can also create a new database by specifying the database name in ```bash docker run --name postgresql -d \ - -e 'DB_NAME=dbname' sameersbn/postgresql:9.4 + -e 'DB_NAME=dbname' sameersbn/postgresql:9.4-1 ``` -You may also specify a comma separated list of database names in the `DB_NAME` variable. The following command creates two new databases named *dbname1* and *dbname2 (p.s. this feature is only available in releases greater than 9.4)* +You may also specify a comma separated list of database names in the `DB_NAME` variable. The following command creates two new databases named *dbname1* and *dbname2 (p.s. this feature is only available in releases greater than 9.4-1)* ```bash docker run --name postgresql -d \ @@ -122,7 +122,7 @@ For example, ```bash docker run --name postgresql -d \ -e 'DB_USER=dbuser' -e 'DB_PASS=dbpass' -e 'DB_NAME=dbname' \ - sameersbn/postgresql:9.4 + sameersbn/postgresql:9.4-1 ``` , will create a user *dbuser* with the password *dbpass*. It will also create a database named *dbname* and the *dbuser* user will have full access to the *dbname* database. @@ -134,7 +134,7 @@ For example, ```bash docker run --name postgresql -d \ -e 'PSQL_TRUST_LOCALNET=true' \ - sameersbn/postgresql:9.4 + sameersbn/postgresql:9.4-1 ``` This has the effect of adding the following to the `pg_hba.conf` file: @@ -160,7 +160,7 @@ The updated run command looks like this. ```bash docker run --name postgresql -d \ - -v /opt/postgresql/data:/var/lib/postgresql sameersbn/postgresql:9.4 + -v /opt/postgresql/data:/var/lib/postgresql sameersbn/postgresql:9.4-1 ``` This will make sure that the data stored in the database is not lost when the image is stopped and started again. @@ -174,7 +174,7 @@ By default unaccent is configure to `false` ```bash docker run --name postgresql -d \ -e 'DB_UNACCENT=true' \ - sameersbn/postgresql:9.4 + sameersbn/postgresql:9.4-1 ``` # Shell Access @@ -216,13 +216,13 @@ docker stop postgresql - **Step 2**: Update the docker image. ```bash -docker pull sameersbn/postgresql:9.4 +docker pull sameersbn/postgresql:9.4-1 ``` - **Step 3**: Start the image ```bash -docker run --name postgresql -d [OPTIONS] sameersbn/postgresql:9.4 +docker run --name postgresql -d [OPTIONS] sameersbn/postgresql:9.4-1 ``` # Host UID / GID Mapping @@ -234,5 +234,5 @@ Also the container processes seem to be executed as the host's user/group `[what ```bash docker run --name=postgresql -it --rm [options] \ --env="USERMAP_UID=$(id -u postgres)" --env="USERMAP_GID=$(id -g postgres)" \ - sameersbn/postgresql:9.4 + sameersbn/postgresql:9.4-1 ```