2.4.50-debian-10-r31 release

This commit is contained in:
Bitnami Bot
2020-06-05 02:26:53 +00:00
parent 9c207c2ae9
commit 5ef45ef0b1
6 changed files with 37 additions and 8 deletions

View File

@@ -8,7 +8,7 @@ ENV HOME="/" \
COPY prebuildfs /
# Install required system packages and dependencies
RUN install_packages ca-certificates curl libc6 libdb5.3 libltdl7 libnss3-tools libodbc1 libperl5.28 libsasl2-2 libssl1.1 libwrap0 mdbtools procps sudo unzip
RUN install_packages ca-certificates curl gzip libc6 libdb5.3 libltdl7 libnss3-tools libodbc1 libperl5.28 libsasl2-2 libssl1.1 libwrap0 mdbtools procps tar
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "openldap" "2.4.50-0" --checksum d98bf0a8de65dc9aafde28349cce66cc3f88b18b62d762634e7aa2a1c61db046
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "gosu" "1.12.0-0" --checksum 582d501eeb6b338a24f417fededbf14295903d6be55c52d66c52e616c81bcd8c
RUN apt-get update && apt-get upgrade -y && \
@@ -17,8 +17,8 @@ RUN apt-get update && apt-get upgrade -y && \
COPY rootfs /
RUN /opt/bitnami/scripts/openldap/postunpack.sh
ENV BITNAMI_APP_NAME="openldap" \
BITNAMI_IMAGE_VERSION="2.4.50-debian-10-r30" \
PATH="/opt/bitnami/openldap/bin:/opt/bitnami/common/bin:/opt/bitnami/openldap/sbin:$PATH"
BITNAMI_IMAGE_VERSION="2.4.50-debian-10-r31" \
PATH="/opt/bitnami/openldap/bin:/opt/bitnami/openldap/sbin:/opt/bitnami/common/bin:$PATH"
EXPOSE 1389 1636

View File

@@ -2,7 +2,7 @@ version: '2'
services:
openldap:
image: bitnami/openldap:2
image: docker.io/bitnami/openldap:2-debian-10
ports:
- '1389:1389'
- '1636:1636'

View File

@@ -25,7 +25,8 @@ component_unpack() {
local version="${2:?version is required}"
local base_name="${name}-${version}-${OS_NAME}-${OS_ARCH}-${OS_FLAVOUR}"
local package_sha256=""
local directory="/opt/bitnami"
# Validate arguments
shift 2
while [ "$#" -gt 0 ]; do
@@ -59,6 +60,10 @@ component_unpack() {
echo "Verifying package integrity"
echo "$package_sha256 ${base_name}.tar.gz" | sha256sum --check -
fi
tar --directory /opt/bitnami --extract --gunzip --file "${base_name}.tar.gz" --no-same-owner --strip-components=2 "${base_name}/files/"
tar --directory "${directory}" --extract --gunzip --file "${base_name}.tar.gz" --no-same-owner --strip-components=2 "${base_name}/files/"
rm "${base_name}.tar.gz"
# Include metadata about the package
touch "${directory}/.bitnami_packages"
echo "$base_name" >> "${directory}/.bitnami_packages"
}

View File

@@ -0,0 +1,24 @@
#!/bin/sh
set -e
set -u
export DEBIAN_FRONTEND=noninteractive
n=0
max=2
until [ $n -gt $max ]; do
set +e
(
apt-get update -qq &&
apt-get install -y --no-install-recommends "$@"
)
CODE=$?
set -e
if [ $CODE -eq 0 ]; then
break
fi
if [ $n -eq $max ]; then
exit $CODE
fi
echo "apt failed, retrying"
n=$(($n + 1))
done
rm -r /var/lib/apt/lists /var/cache/apt/archives

View File

@@ -35,7 +35,7 @@ Non-root container images add an extra layer of security and are generally recom
Learn more about the Bitnami tagging policy and the difference between rolling tags and immutable tags [in our documentation page](https://docs.bitnami.com/tutorials/understand-rolling-tags-containers/).
* [`2-debian-10`, `2.4.50-debian-10-r30`, `2`, `2.4.50`, `latest` (2/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-openldap/blob/2.4.50-debian-10-r30/2/debian-10/Dockerfile)
* [`2-debian-10`, `2.4.50-debian-10-r31`, `2`, `2.4.50`, `latest` (2/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-openldap/blob/2.4.50-debian-10-r31/2/debian-10/Dockerfile)
Subscribe to project updates by watching the [bitnami/openldap GitHub repo](https://github.com/bitnami/bitnami-docker-openldap).

View File

@@ -2,7 +2,7 @@ version: '2'
services:
openldap:
image: bitnami/openldap:2
image: docker.io/bitnami/openldap:2-debian-10
ports:
- '1389:1389'
- '1636:1636'