1
0
mirror of https://github.com/docker-library/postgres.git synced 2025-11-17 13:02:40 +03:00
Commit Graph

11 Commits

Author SHA1 Message Date
Tianon Gravi
25b3034e9b Update permissions from 777 to 1777
This still supports the "arbitrary user" use case but with slightly tighter permissions on the end result.

This one is a little bit more "special" other images (due to the existing runtime/entrypoint modification of the directory modes) so I've tried to pick reasonable values for both halves.
2023-03-10 16:05:33 -08:00
Stan Hu
41bd7bf3f4 Add newline to POSTGRES_PASSWORD file for initdb
https://github.com/docker-library/postgres/issues/1024 converted all
`echo` calls to `printf`, but this change causes the password file
used by `initdb` to be blank rather than contain a single newline.
As a result, `initdb` will fail to start with an empty value with
the error:

```
initdb: error: password file "/dev/fd/63" is empty
```

`POSTGRES_PASSWORD` can be blank if `POSTGRES_HOST_AUTH_METHOD=trust`
is used. This change adds a newline to restore the original behavior.

Closes #1025
2022-12-22 13:40:11 -08:00
Tianon Gravi
7e5e7ece73 Convert all entrypoint "echo"s to "printf"
The use of the `echo` shell built-in has been actively discouraged for a long time, but it's really convenient so we keep doing it.  This converts them all to use `printf` appropriately such that we avoid issues like `echo "$someVar"` from doing the wrong thing if `$someVar` is `-n` or similar.
2022-12-21 10:42:36 -08:00
fjf2002
74e51d102a prep for possible set -u in docker-entrypoint.sh
Update docker-entrypoint.sh
2022-06-16 15:11:37 -07:00
Héctor Molinero Fernández
e8ebf74e50 Add .sql.zst support to docker-entrypoint-initdb.d 2022-03-04 17:28:24 -08:00
Tianon Gravi
36abfddd6f Remove 9.6 (EOL)
See https://www.postgresql.org/about/news/postgresql-141-135-129-1114-1019-and-9624-released-2349/

> Additionally, this is the final release of PostgreSQL 9.6. If you are running PostgreSQL 9.6 in a production environment, we suggest that you make plans to upgrade.
2022-02-11 17:52:48 -08:00
tobwen
a83005b407 Fix unset/cleanup "nss_wrapper" bits (#919)
original code didn't respect libnss-wrapper at other locations
2022-01-03 14:49:25 -08:00
Bartlomiej Szostek
edce986784 fix: Add --no-psqlrc to psql script invocations
This flag prevents custom .psqlrc files from interfering with the db init process
2021-10-23 21:54:12 +01:00
Joe Ferguson
c6329e3bf2 Adjust POSTGRES_HOST_AUTH_METHOD to automatically match configured password_encryption 2021-10-15 14:52:26 -07:00
Tianon Gravi
ab940cbb92 Fix "libnss-wrapper" usage on bullseye
See b9925a653a for the breaking change which necessitates this.
2021-09-28 10:57:41 -07:00
Joe Ferguson
90892b6814 Add 14beta2 2021-07-12 15:05:16 -07:00