mirror of
https://github.com/bitnami/containers.git
synced 2026-03-13 14:58:03 +08:00
10.6.0-debian-9-r37 release
This commit is contained in:
@@ -6,7 +6,7 @@ ENV BITNAMI_PKG_CHMOD="-R g+rwX" \
|
||||
|
||||
# Install required system packages and dependencies
|
||||
RUN install_packages libbsd0 libc6 libedit2 libgcc1 libicu57 liblzma5 libncurses5 libnss-wrapper libssl1.1 libstdc++6 libtinfo5 libxml2 libxslt1.1 zlib1g
|
||||
RUN bitnami-pkg unpack postgresql-10.6.0-23 --checksum 808883a1c4145d92528ed57a1bb36b913b06130c4fba4e5dee9723f1b2fbe6cc
|
||||
RUN bitnami-pkg unpack postgresql-10.6.0-24 --checksum a6c9700ce0ac94f121eeb7a3df5b63469c0bbb50de79561ef13837fc40c937fb
|
||||
RUN echo 'en_GB.UTF-8 UTF-8' >> /etc/locale.gen && locale-gen
|
||||
RUN echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen && locale-gen
|
||||
RUN mkdir /docker-entrypoint-initdb.d /opt/bitnami/postgresql/conf/
|
||||
@@ -14,7 +14,7 @@ RUN chmod -R g+rwX /opt/bitnami/postgresql/conf/
|
||||
|
||||
COPY rootfs /
|
||||
ENV BITNAMI_APP_NAME="postgresql" \
|
||||
BITNAMI_IMAGE_VERSION="10.6.0-debian-9-r36" \
|
||||
BITNAMI_IMAGE_VERSION="10.6.0-debian-9-r37" \
|
||||
LANG="en_US.UTF-8" \
|
||||
LANGUAGE="en_US:en" \
|
||||
NAMI_PREFIX="/.nami" \
|
||||
|
||||
@@ -6,7 +6,15 @@
|
||||
print_welcome_page
|
||||
|
||||
if [[ "$1" == "nami" && "$2" == "start" ]] || [[ "$1" == "/run.sh" ]]; then
|
||||
if ! getent passwd "$(id -u)" &> /dev/null && [ -e /usr/lib/libnss_wrapper.so ]; then
|
||||
# Copy mounted configuration files
|
||||
PERSIST_CONF_DIR=/bitnami/postgresql/conf
|
||||
CONF_DIR=/opt/bitnami/postgresql/conf
|
||||
if [[ -d "$PERSIST_CONF_DIR" ]]; then
|
||||
mkdir -p $CONF_DIR
|
||||
cp -r $PERSIST_CONF_DIR/* $CONF_DIR
|
||||
fi
|
||||
|
||||
if ! getent passwd "$(id -u)" &> /dev/null && [ -e /usr/lib/libnss_wrapper.so ]; then
|
||||
export LD_PRELOAD='/usr/lib/libnss_wrapper.so'
|
||||
# shellcheck disable=SC2155
|
||||
export NSS_WRAPPER_PASSWD="$(mktemp)"
|
||||
|
||||
@@ -10,13 +10,10 @@ fi
|
||||
# allow running custom initialization scripts
|
||||
if [[ -n $(find /docker-entrypoint-initdb.d/ -type f -regex ".*\.\(sh\|sql\|sql.gz\)") ]] && [[ ! -f /bitnami/postgresql/.user_scripts_initialized ]]; then
|
||||
info "Loading user files from /docker-entrypoint-initdb.d";
|
||||
if [[ ! -z $POSTGRESQL_PASSWORD ]]; then
|
||||
if [[ -n $POSTGRESQL_PASSWORD ]] && [[ $POSTGRESQL_USERNAME == "postgres" ]]; then
|
||||
export PGPASSWORD=$POSTGRESQL_PASSWORD
|
||||
fi
|
||||
psql=( psql --username $POSTGRESQL_USERNAME )
|
||||
if [[ -n $POSTGRESQL_DATABASE ]]; then
|
||||
psql+=( --dbname $POSTGRESQL_DATABASE )
|
||||
fi
|
||||
psql=( psql --username postgres )
|
||||
nami start postgresql > /dev/null
|
||||
for f in /docker-entrypoint-initdb.d/*; do
|
||||
case "$f" in
|
||||
|
||||
Reference in New Issue
Block a user