mirror of
https://github.com/bitnami/containers.git
synced 2026-03-16 14:57:44 +08:00
10.19.0-debian-10-r82 release
This commit is contained in:
@@ -6,6 +6,9 @@ ENV HOME="/" \
|
||||
OS_FLAVOUR="debian-10" \
|
||||
OS_NAME="linux"
|
||||
|
||||
ARG EXTRA_LOCALES=""
|
||||
ARG WITH_ALL_LOCALES="no"
|
||||
|
||||
COPY prebuildfs /
|
||||
# Install required system packages and dependencies
|
||||
RUN install_packages acl ca-certificates curl gzip libbsd0 libbz2-1.0 libc6 libedit2 libffi6 libgcc1 libgmp10 libgnutls30 libhogweed4 libicu63 libidn2-0 libldap-2.4-2 liblz4-1 liblzma5 libncurses6 libnettle6 libp11-kit0 libpcre3 libreadline7 libsasl2-2 libsqlite3-0 libssl1.1 libstdc++6 libtasn1-6 libtinfo6 libunistring2 libuuid1 libxml2 libxslt1.1 libzstd1 locales procps tar zlib1g
|
||||
@@ -24,7 +27,7 @@ COPY rootfs /
|
||||
RUN /opt/bitnami/scripts/postgresql/postunpack.sh
|
||||
RUN /opt/bitnami/scripts/locales/add-extra-locales.sh
|
||||
ENV BITNAMI_APP_NAME="postgresql" \
|
||||
BITNAMI_IMAGE_VERSION="10.19.0-debian-10-r81" \
|
||||
BITNAMI_IMAGE_VERSION="10.19.0-debian-10-r82" \
|
||||
LANG="en_US.UTF-8" \
|
||||
LANGUAGE="en_US:en" \
|
||||
NSS_WRAPPER_LIB="/opt/bitnami/common/lib/libnss_wrapper.so" \
|
||||
|
||||
@@ -23,6 +23,7 @@ export BITNAMI_DEBUG="${BITNAMI_DEBUG:-false}"
|
||||
postgresql_env_vars=(
|
||||
POSTGRESQL_VOLUME_DIR
|
||||
POSTGRESQL_DATA_DIR
|
||||
POSTGRESQL_EXTRA_FLAGS
|
||||
POSTGRESQL_INIT_MAX_TIMEOUT
|
||||
POSTGRESQL_PGCTLTIMEOUT
|
||||
POSTGRESQL_SHUTDOWN_MODE
|
||||
@@ -189,6 +190,7 @@ export POSTGRESQL_DAEMON_USER="postgres"
|
||||
export POSTGRESQL_DAEMON_GROUP="postgres"
|
||||
|
||||
# PostgreSQL settings
|
||||
export POSTGRESQL_EXTRA_FLAGS="${POSTGRESQL_EXTRA_FLAGS:-}"
|
||||
export POSTGRESQL_INIT_MAX_TIMEOUT="${POSTGRESQL_INIT_MAX_TIMEOUT:-60}"
|
||||
export POSTGRESQL_PGCTLTIMEOUT="${POSTGRESQL_PGCTLTIMEOUT:-60}"
|
||||
POSTGRESQL_SHUTDOWN_MODE="${POSTGRESQL_SHUTDOWN_MODE:-"${POSTGRES_SHUTDOWN_MODE:-}"}"
|
||||
|
||||
@@ -15,6 +15,14 @@ set -o pipefail
|
||||
. /opt/bitnami/scripts/postgresql-env.sh
|
||||
|
||||
flags=("-D" "$POSTGRESQL_DATA_DIR" "--config-file=$POSTGRESQL_CONF_FILE" "--external_pid_file=$POSTGRESQL_PID_FILE" "--hba_file=$POSTGRESQL_PGHBA_FILE")
|
||||
|
||||
if [[ -n "${POSTGRESQL_EXTRA_FLAGS:-}" ]]; then
|
||||
read -r -a extra_flags <<< "$POSTGRESQL_EXTRA_FLAGS"
|
||||
flags+=("${extra_flags[@]}")
|
||||
fi
|
||||
|
||||
flags+=("$@")
|
||||
|
||||
cmd=$(command -v postgres)
|
||||
|
||||
info "** Starting PostgreSQL **"
|
||||
|
||||
@@ -54,11 +54,10 @@ Learn more about the Bitnami tagging policy and the difference between rolling t
|
||||
* [`13`, `13-debian-10`, `13.5.0`, `13.5.0-debian-10-r80` (13/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-postgresql/blob/13.5.0-debian-10-r80/13/debian-10/Dockerfile)
|
||||
* [`12`, `12-debian-10`, `12.9.0`, `12.9.0-debian-10-r80` (12/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-postgresql/blob/12.9.0-debian-10-r80/12/debian-10/Dockerfile)
|
||||
* [`11`, `11-debian-10`, `11.14.0`, `11.14.0-debian-10-r50` (11/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-postgresql/blob/11.14.0-debian-10-r50/11/debian-10/Dockerfile)
|
||||
* [`10`, `10-debian-10`, `10.19.0`, `10.19.0-debian-10-r81` (10/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-postgresql/blob/10.19.0-debian-10-r81/10/debian-10/Dockerfile)
|
||||
* [`10`, `10-debian-10`, `10.19.0`, `10.19.0-debian-10-r82` (10/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-postgresql/blob/10.19.0-debian-10-r82/10/debian-10/Dockerfile)
|
||||
|
||||
Subscribe to project updates by watching the [bitnami/postgresql GitHub repo](https://github.com/bitnami/bitnami-docker-postgresql).
|
||||
|
||||
|
||||
## Get this image
|
||||
|
||||
The recommended way to get the Bitnami PostgreSQL Docker Image is to pull the prebuilt image from the [Docker Hub Registry](https://hub.docker.com/r/bitnami/postgresql).
|
||||
@@ -181,6 +180,12 @@ When the container is executed, it will execute the files with extension `.sh` l
|
||||
|
||||
In order to have your custom files inside the docker image you can mount them as a volume.
|
||||
|
||||
### Passing extra command-line flags to PostgreSQL
|
||||
|
||||
Passing extra command-line flags to the postgresql service command is possible through the following env var:
|
||||
|
||||
- `POSTGRESQL_EXTRA_FLAGS`: Flags to be appended to the `postgres` startup command. No defaults
|
||||
|
||||
### Initializing a new instance
|
||||
|
||||
When the container is executed for the first time, it will execute the files with extensions `.sh`, `.sql` and `.sql.gz` located at `/docker-entrypoint-initdb.d`.
|
||||
@@ -672,6 +677,19 @@ You can control the parameters used to stop postgresql in the initialization pro
|
||||
- `POSTGRESQL_PGCTLTIMEOUT` that will set the timeout for the `pg_ctl` command.
|
||||
- `POSTGRESQL_SHUTDOWN_MODE` that will indicate the [shutdown mode](https://www.postgresql.org/docs/11/app-pg-ctl.html) used.
|
||||
|
||||
### Installing extra locales
|
||||
|
||||
The Dockerfile provides two arguments to configure extra locales at build time:
|
||||
|
||||
- `WITH_ALL_LOCALES`: Enable all supported locales. Default: no
|
||||
- `EXTRA_LOCALES`: Comma separated list of extra locales to enable. No defaults
|
||||
|
||||
For example, to build an image with support for the `es_ES.UTF-8 UTF-8` locale, you can add the following argument to your build command:
|
||||
|
||||
```
|
||||
docker build --build-arg EXTRA_LOCALES="es_ES.UTF-8 UTF-8" ...
|
||||
```
|
||||
|
||||
### Environment variables aliases
|
||||
|
||||
The Bitnami PostgreSQL container allows two different sets of environment variables. Please see the list of environment variable aliases in the next table:
|
||||
|
||||
Reference in New Issue
Block a user