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
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
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
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
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
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
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
Tianon Gravi
6032cd32d1
Refactor entrypoint to allow "sql.gz" files as well
2016-03-02 13:13:49 -08:00
Tianon Gravi
2184bbc2d7
Run update.sh
2016-02-26 10:59:41 -08:00
Łukasz Warchał
916a840510
Stops docker-entrypoint.sh on psql error
...
This fixes #112
2016-01-19 09:57:59 +01: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
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
66c7b2dee7
Improve initdb logic to properly source *.sql files as well, without the use of --single
2015-07-23 14:17:33 -07:00
Tianon Gravi
0ced079cd6
Fix "-s" usage
2015-07-21 16:12:07 -07:00
Victor Heng
9c7bb73021
Check that PG_VERSION is non-empty.
2015-07-19 00:41:18 +08:00
Victor Heng
3231f4a4d8
Check that vol actually contains DB files, as opposed to a non-empty dir.
...
Referencing file list here: http://www.postgresql.org/docs/9.1/static/storage-file-layout.html
2015-07-14 19:25:53 +08:00
Tianon Gravi
e677b56172
Add 9.5-alpha1
2015-07-08 09:47:57 -07:00