Tianon Gravi
064113e0e4
Add "stretch-backports" to 11+ for clang-6.0
...
(also, remove *.pyc files for size)
2018-08-21 14:39:06 -07:00
Tianon Gravi
726128b358
Fix Debian "postgres" user HOME (to match Debian package)
...
See 997d842ee7/debian/postgresql-common.postinst (L32-35) for the bit of the upstream Debian package which sets this.
2018-08-17 13:00:10 -07:00
Docker Library Bot
a72377975f
Update to 9.5.14
2018-08-09 18:02:16 +00:00
Docker Library Bot
d424c8f180
Update to 9.5.14-1.pgdg90+1
2018-08-09 18:02:16 +00:00
Tianon Gravi
635fd0bcb3
Add "pgp-happy-eyeballs" in Travis to help cut down on gpg-related issues
2018-07-25 12:34:27 -07:00
Michael Käufl
34689e2a5b
Apply changes from running ./update.sh
2018-07-09 16:35:20 +02:00
Tianon Gravi
eff90effc6
Allow "initdb.d" scripts to be executed instead of sourced
2018-05-30 11:00:02 -07:00
Tianon Gravi
fe89a60c9b
Implement "nss_wrapper" for Debian variants
2018-05-24 11:39:50 -07:00
Docker Library Bot
54bfbc5fbe
Update to 9.5.13-2.pgdg90+1
2018-05-21 12:02:11 +00:00
Docker Library Bot
d545428bfe
Update to 9.5.13-1.pgdg90+1
2018-05-10 16:58:08 +00:00
Docker Library Bot
65f0c2afd3
Update to 9.5.13
2018-05-10 16:58:08 +00:00
Codruț Constantin Gușoi
6fe8c15843
Listen only on the unix socket during init
...
Healthchecks that used `pg_isready -p 5432` were incorrectly flagging
the container as being healthy during initialization phase since
healthchecks are being run inside the container itself, so
`listen_addresses='localhost'` was not enough. Setting
`listen_addresses=''` forces the server to only listen on the unix
socket so no ports are open that might incorrectly interfeer with the
healthchecks.
2018-05-04 10:38:07 +01:00
Tianon Gravi
5876d4b88a
Merge pull request #437 from infosiftr/stretch-slim
...
Update to Debian Stretch (slim)
2018-04-23 16:16:36 -07:00
Tianon Gravi
ef4545c07b
Update to Debian Stretch (slim)
2018-04-23 15:16:30 -07:00
Tianon Gravi
c66fc738ed
Update to Alpine 3.7
2018-04-23 15:06:17 -07:00
Docker Library Bot
7063c608f7
Update to 9.5.12
2018-03-01 20:44:39 +00:00
Docker Library Bot
07ae979980
Update to 9.5.12-1.pgdg80+1
2018-03-01 20:44:39 +00:00
Docker Library Bot
8734ceed8c
Update to 9.5.11
2018-02-10 19:02:14 +00:00
Docker Library Bot
f4aa86c49b
Update to 9.5.11-1.pgdg80+1
2018-02-10 19:02:14 +00:00
Docker Library Bot
2100e76efe
Update to 9.5.10-2~35.gitb212664.pgdg80+1
2018-02-08 17:46:51 +00:00
Docker Library Bot
b84ddd1619
Update to 9.5.10-1.pgdg80+1
2017-11-09 19:02:16 +00:00
Docker Library Bot
5a690fbbe0
Update to 9.5.10
2017-11-09 19:02:16 +00:00
Tianon Gravi
3b022607be
Swap from "gnupg2" to "gnupg"
...
See https://github.com/docker-library/python/issues/236 for details.
2017-11-01 13:53:25 -07:00
Tianon Gravi
f7dc5727b1
Fix PATH, especially for cyrillic characters in psql
2017-10-11 13:24:03 -07:00
Joe Ferguson
1089a8971b
Adjust scanelf to properly detect runDeps
2017-09-22 14:19:38 -07:00
yosifkit
bef8f02d1f
Merge pull request #330 from infosiftr/multiarch
...
Use "apt-get source --compile" to build for Debian architectures upstream doesn't
2017-08-31 10:17:25 -07:00
Docker Library Bot
9e862fa9b1
Update to 9.5.9
2017-08-31 14:19:05 +00:00
Docker Library Bot
8904bffa5e
Update to 9.5.9-1.pgdg80+1
2017-08-31 14:19:05 +00:00
Tianon Gravi
cd3f3b1c48
Use "apt-get source --compile" to build for Debian architectures upstream doesn't
2017-08-30 21:57:04 -07:00
Docker Library Bot
8836191de6
Update to 9.5.8-1.pgdg80+1
2017-08-10 18:03:22 +00:00
Docker Library Bot
a1b76e5704
Update to 9.5.8
2017-08-10 18:03:21 +00:00
Tianon Gravi
2f0f505894
Apply update.sh
2017-07-27 16:54:40 -07:00
Tianon Gravi
f3146f857b
Update to 10beta2
...
This adds perl-ipc-run to Alpine since 10's configure script now requires it.
2017-07-14 09:43:00 -07:00
Joe Ferguson
972294a377
Fix failure to remove non-existent gpg files
2017-06-22 10:25:36 -07:00
Joe Ferguson
d8abce4e82
Add gpg when necessary, ensure `prove` exists
2017-06-21 17:01:35 -07:00
Tianon Gravi
2b0f642834
Update "git.savannah.gnu.org" URLs
2017-06-05 09:51:54 -07:00
Tianon Gravi
54053ad27a
Adjust "/var/run/postgresql" permissions for arbitrary-user support
2017-05-19 10:46:58 -07:00
Docker Library Bot
f59e5f0edb
Update to 9.5.7-1.pgdg80+1
2017-05-11 11:02:24 -07:00
Docker Library Bot
c844ef6248
Update to 9.5.7
2017-05-11 11:02:24 -07:00
Tianon Gravi
975f6a2705
Explicitly update "config.guess" and "config.sub" (and update "ossp-uuid" code)
2017-05-10 10:54:54 -07:00
Tianon Gravi
bc44222ff8
Add explicit "--build" to our "./configure" invocations
2017-05-10 10:19:28 -07:00
Tianon Gravi
ee20f10a40
Add "mkdir ~postgres" with proper permissions
2017-04-25 14:59:57 -07:00
Pahaz Blinov
3d4e5e9f64
Simplify docker-entrypoint.sh append line
2017-04-06 14:32:45 -07:00
Tianon Gravi
123aedc09b
Merge pull request #224 from DanielDent/master
...
POSTGRES_XLOG_DIR to specify transaction log dir
2017-03-20 10:10:03 -07:00
Tianon Gravi
913bc48bfd
Update order to match other blocks and move "--xlogdir" handling down to where it'll be invoked regardless of our "root" status
2017-03-20 09:54:06 -07:00
Tianon Gravi
439c4976af
Minor whitespace and consistency changes
2017-03-06 14:45:24 -08:00
Daniel Dent
89530f6020
POSTGRES_INITDB_XLOGDIR to specify xlog log dir
...
Adds support for the POSTGRES_INITDB_XLOGDIR environment variable, which specifies where the postgres transaction log is stored.
For some use cases, being able to place the transaction log on a different volume is useful.
Existing support for providing flags via $POSTGRES_INITDB_ARGS is inadequate because of the need to create and chown/chmod the directory prior to running initdb.
2017-02-28 14:05:26 -08:00
Docker Library Bot
a869eeccfb
Update to 9.5.6-1.pgdg80+1
2017-02-09 11:02:21 -08:00
Docker Library Bot
738ec9015c
Update to 9.5.6
2017-02-09 11:02:21 -08:00
Tianon Gravi
fc676766b4
Put "docker-entrypoint.sh" in PATH (with backwards-compat symlink)
2017-02-08 16:22:56 -08:00
Tianon Gravi
e43016225f
Merge pull request #247 from kurlzor/keep-libs
...
Keep lib sources so the image can be used as a base image for postgis
2017-01-25 15:38:36 -08:00
Tianon Gravi
d7accc9c8c
Add one more minor tweak on top of #253
2017-01-19 16:04:43 -08:00
Tianon Gravi
3706d4c456
Allow arbitrary --user values (mostly)
...
One special case is that `initdb` _requires_ the current user to exist in `/etc/passwd`, but running PostgreSQL itself does not require that.
2017-01-19 14:59:34 -08:00
Tianon Gravi
b68154ed79
Use "/var/run/postgresql" consistently (and apply Debian's change of the default socket path to Alpine also)
2017-01-19 14:24:15 -08:00
Régis Belson
106e9e56fe
Keep lib sources so the image can be used as a base image for postgis
2017-01-17 09:59:21 +01:00
Tianon Gravi
ea6f466b25
Use "/etc/apt/trusted.gpg.d" instead of "apt-key adv"
...
> Note: Instead of using this command a keyring should be placed
> directly in the /etc/apt/trusted.gpg.d/ directory with a
> descriptive name and either "gpg" or "asc" as file extension.
https://manpages.debian.org/cgi-bin/man.cgi?query=apt-key&manpath=Debian+testing+stretch
2017-01-10 15:58:17 -08:00
Tianon Gravi
bcf8da33d8
Update to Alpine 3.5
2017-01-03 15:58:03 -08:00
Tianon Gravi
a7ba7f2b2d
Remove "doc" and "man" from Alpine images for size
...
```
postgres 9.6-alpine-after 83c9edfc60a1 2 minutes ago 32.53 MB
postgres 9.6-alpine-before 56409b6ffc83 9 minutes ago 49.43 MB
```
2016-12-21 14:55:37 -08:00
Joe Ferguson
4f3238cf60
Run update.sh
2016-12-12 10:42:05 -08:00
Tianon Gravi
5e7d985129
Apply change to all variants via update.sh
2016-12-06 12:55:40 -08:00
Tianon Gravi
d2b3854477
Merge pull request #226 from lockie/master
...
Add missing timezone info to alpine variant
2016-11-22 12:19:19 -08:00
Tianon Gravi
9c9887539c
Expand bit.ly link and adjust wording a bit
2016-11-22 10:36:39 -08:00
Andrew Kravchuk
b031aa8003
Add missing timezone info to alpine variant
2016-11-22 11:38:25 +03:00
Tianon Gravi
edd455e5b1
Add "file_env" support, especially for Docker secrets
...
This adds explicit support for the following:
- `POSTGRES_DB_FILE`
- `POSTGRES_INITDB_ARGS_FILE`
- `POSTGRES_PASSWORD_FILE`
- `POSTGRES_USER_FILE`
2016-11-21 13:44:36 -08:00
Tianon Gravi
797fadcad2
Add a note about "tzdata", adjust configuration appropriately, and remove fetch deps too
2016-11-03 14:59:10 -07:00
Tianon Gravi
a9c1b15a7a
Sync a bit more with the Debian configure flags (adding comments for where we differ) and add all versions (including "update.sh" and "generate-stackbrew-library.sh" changes, with our new template)
2016-11-03 14:18:48 -07:00
Natanael Copa
688e034f83
upgrade :9.5-alpine to 9.5.2
2016-11-03 12:44:03 -07:00
Natanael Copa
442a92590b
add postgres:9.5-alpine variant
...
build it from source
2016-11-03 12:44:03 -07:00
Docker Library Bot
db63c8c4ef
Update to 9.5.5-1.pgdg80+1
2016-10-27 11:02:12 -07:00
Joe Ferguson
2a95274301
Use gosu postgres when writing to hba.cnf so that drop-cap dac_override works
2016-10-25 15:35:16 -07:00
sixcorners
e2f07374b3
Add "mkdir -p /run/postgresql" to docker-entrypoint.sh.
...
This allows the container to run with a tmpfs /run.
2016-10-20 00:06:16 -05:00
Docker Library Bot
1c0bc9d905
Update to 9.5.4-1.pgdg80+2
2016-09-29 05:02:11 -07:00
Joe Ferguson
fc36c25f8a
Run update.sh to bump all the versions
2016-08-11 14:50:06 -07:00
Tianon Gravi
04b1d366d5
Update to 9.5.3-1.pgdg80+1, 9.4.8-1.pgdg80+1, 9.3.13-1.pgdg80+1, 9.2.17-1.pgdg80+1, 9.1.22-1.pgdg80+1
2016-05-12 14:01:22 -07:00
Tianon Gravi
8e867c8ba0
Update to 9.5.2-1.pgdg80+1, 9.4.7-1.pgdg80+1, 9.3.12-1.pgdg80+1, 9.2.16-1.pgdg80+1, 9.1.21-1.pgdg80+1
2016-03-31 17:01:43 -07:00
Tianon Gravi
716f26cdd6
Listen on "local" interfaces during init
2016-03-18 13:33:42 -07:00
Nick Cox
3f8e978443
tianon's eval suggestion
2016-03-14 18:56:22 -06:00
Nick Cox
a511763ae7
Add POSTGRES_INITDB_ARGS env var
2016-03-03 18:13:01 -07:00
yosifkit
48d6cd0f57
Merge pull request #131 from infosiftr/sql-gz
...
Refactor entrypoint to allow "sql.gz" files as well
2016-03-02 16:06:19 -08:00
yosifkit
c82348f8f1
Merge pull request #127 from infosiftr/listen_addresses
...
Refactor listen_addresses to be set in the sample file, and make the sample file easier to overwrite
2016-03-02 14:58:06 -08:00
Tianon Gravi
6032cd32d1
Refactor entrypoint to allow "sql.gz" files as well
2016-03-02 13:13:49 -08:00
Tianon Gravi
35a09c34b0
Fix "gpg" usage to stop relying on deprecated and insecure behavior
2016-02-29 08:40:55 -08:00
Tianon Gravi
2184bbc2d7
Run update.sh
2016-02-26 10:59:41 -08:00
Josh Holtz
443c7947d5
Version updates
2016-02-11 14:45:48 -06:00
Łukasz Warchał
916a840510
Stops docker-entrypoint.sh on psql error
...
This fixes #112
2016-01-19 09:57:59 +01:00
Tianon Gravi
9737ce4eeb
Merge pull request #113 from rchicoli/update_keyserver
...
use the keyserver ha, because the other one is not reachable anymore
2016-01-09 11:04:48 -08:00
Rafael Chicoli
a7551affea
use the keyserver ha, because the other one is not reachable anymore
2016-01-09 12:41:06 +01:00
Tianon Gravi
2c72165e4f
Update to 9.5.0
2016-01-07 10:27:31 -08:00
Jacob Hayes
d164485094
Don't set perm on data dir recursively
2016-01-05 16:49:58 -06:00
Jacob Hayes
86fcd0c100
Explicitly set PGDATA permissions to 700
2015-12-22 15:50:44 -06:00
Tianon Gravi
d74474439c
Update to 9.5~rc1-1.pgdg80+1
2015-12-18 13:30:39 -08:00
Tianon Gravi
8a9fbcb40f
Update to 9.5~beta2-1.pgdg80+1
2015-11-11 09:16:36 -08:00
yosifkit
ed23320582
Merge pull request #93 from hkjn/master
...
Explicitly set uid/gid for postgres/postgres
2015-10-08 14:57:15 -07:00
Tianon Gravi
b9ea5d40cb
Update to 9.1.19-1.pgdg80+1, 9.2.14-1.pgdg80+1, 9.3.10-1.pgdg80+1, 9.4.5-1.pgdg80+1, and 9.5~beta1-1.pgdg80+1
...
Fixes #95
2015-10-08 09:30:26 -07:00
Henrik Jonsson
8f8c0bbc52
Explicitly set uid/gid for postgres/postgres
...
The values 999:999 are identical to the current user/group id assigned
in the containers (tested in postgres:9.4, but should be identical for
all versions), but this guarantees that those values will remain the
same even if the groupadd/useradd commands were moved elsewhere in the
Dockerfile, or a new debian:jessie image was pushed.
Tested:
core@test-1 ~ $ docker run -v $(pwd):/origin --rm -it debian:jessie bash -c 'groupadd -r postgres --gid=999 && useradd -r -g postgres --uid=999 postgres && mkdir /origin/pg && chown -R postgres:postgres /origin/pg'
core@test-1 ~ $ ls -hsal pg/
total 8.0K
4.0K drwxr-xr-x 2 999 999 4.0K Sep 22 12:57 .
4.0K drwxr-xr-x 5 core core 4.0K Sep 22 12:59 ..
core@test-1 ~ $ rm -rf pg/
core@test-1 ~ $ docker run -v $(pwd):/origin --rm -it --user=root postgres:9.4 bash -c 'mkdir /origin/pg && chown -R postgres:postgres /origin/pg'
core@test-1 ~ $ ls -hsal pg/
total 8.0K
4.0K drwxr-xr-x 2 999 999 4.0K Sep 22 12:59 .
4.0K drwxr-xr-x 5 core core 4.0K Sep 22 12:59 ..
2015-09-22 14:51:58 +02:00
Mike Dillon
cd294bf8df
Export POSTGRES_USER and POSTGRES_DB vars in entrypoint
...
Allows them to be used from /docker-entrypoint-initdb.d/*.sh scripts
2015-08-25 20:30:57 -07:00
Mike Dillon
c444bceb4f
Run /docker-entrypoint-initdb.d/*.sql scripts as $POSTGRES_USER
2015-08-24 17:03:11 -07:00
Tianon Gravi
7111ef75d6
Run update.sh
2015-08-21 15:39:01 -07:00
Tianon Gravi
7fed4298db
Update to 9.5~alpha2-1.pgdg80+1
2015-08-11 10:44:23 -07:00
yosifkit
a82c28e1c4
Merge pull request #75 from infosiftr/better-initdb
...
Improve initdb logic to properly source *.sql files as well, without the use of --single
2015-07-24 10:58:29 -07:00