2.0.1-debian-10-r0 release

This commit is contained in:
Bitnami Bot
2020-02-04 22:22:48 +00:00
parent ee910f949d
commit cf584c0e22
3 changed files with 48 additions and 10 deletions

View File

@@ -9,7 +9,7 @@ ENV HOME="/" \
COPY prebuildfs /
# Install required system packages and dependencies
RUN install_packages ca-certificates curl libc6 libgcc1 libpcre3 libssl1.1 libyaml-0-2 perl procps sudo unzip zlib1g
RUN . ./libcomponent.sh && component_unpack "kong" "2.0.0-0" --checksum 8c2ce230a991ffe822de8f451add6dfa6c4fbedd6d01f8bce94898ce1d821dc0
RUN . ./libcomponent.sh && component_unpack "kong" "2.0.1-0" --checksum fed331425b8399f174b1c9325d5607bb2e9a5551cd5048095fb3cd7df8f0205a
RUN apt-get update && apt-get upgrade && \
rm -r /var/lib/apt/lists /var/cache/apt/archives
RUN /build/install-gosu.sh
@@ -17,7 +17,7 @@ RUN /build/install-gosu.sh
COPY rootfs /
RUN /postunpack.sh
ENV BITNAMI_APP_NAME="kong" \
BITNAMI_IMAGE_VERSION="2.0.0-debian-10-r0" \
BITNAMI_IMAGE_VERSION="2.0.1-debian-10-r0" \
PATH="/opt/bitnami/kong/bin:/opt/bitnami/kong/openresty/bin:/opt/bitnami/kong/openresty/luajit/bin:/opt/bitnami/kong/openresty/nginx/sbin:$PATH"
EXPOSE 8000 8001 8443 8444

View File

@@ -5,18 +5,56 @@
# Functions
########################
# Ensure a line exists in the file by replacing a matching line.
# Replace a regex in a file
# Arguments:
# $1 - filename
# $2 - line
# $3 - match
# $2 - match regex
# $3 - substitute regex
# $4 - use POSIX regex. Default: true
# Returns:
# None
#########################
file_contains_line() {
replace_in_file() {
local filename="${1:?filename is required}"
local line="${2:?line is required}"
local match="${3:?match is required}"
local match_regex="${2:?match regex is required}"
local substitute_regex="${3:?substitute regex is required}"
local posix_regex=${4:-true}
sed --in-place "s/^$match\$/$line/" "$filename"
local result
# We should avoid using 'sed in-place' substitutions
# 1) They are not compatible with files mounted from ConfigMap(s)
# 2) We found incompatibility issues with Debian10 and "in-place" substitutions
if [[ $posix_regex = true ]]; then
result="$(sed -E "s@$match_regex@$substitute_regex@g" "$filename")"
else
result="$(sed "s@$match_regex@$substitute_regex@g" "$filename")"
fi
echo "$result" > "$filename"
}
########################
# Remove a line in a file based on a regex
# Arguments:
# $1 - filename
# $2 - match regex
# $3 - use POSIX regex. Default: true
# Returns:
# None
#########################
remove_in_file() {
local filename="${1:?filename is required}"
local match_regex="${2:?match regex is required}"
local posix_regex=${3:-true}
local result
# We should avoid using 'sed in-place' substitutions
# 1) They are not compatible with files mounted from ConfigMap(s)
# 2) We found incompatibility issues with Debian10 and "in-place" substitutions
if [[ $posix_regex = true ]]; then
result="$(sed -E "/$match_regex/d" "$filename")"
else
result="$(sed "/$match_regex/d" "$filename")"
fi
echo "$result" > "$filename"
}

View File

@@ -51,8 +51,8 @@ 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/containers/how-to/understand-rolling-tags-containers/).
* [`2-debian-10`, `2.0.1-debian-10-r0`, `2`, `2.0.1`, `latest` (2/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-kong/blob/2.0.1-debian-10-r0/2/debian-10/Dockerfile)
* [`2-ol-7`, `2.0.0-ol-7-r0` (2/ol-7/Dockerfile)](https://github.com/bitnami/bitnami-docker-kong/blob/2.0.0-ol-7-r0/2/ol-7/Dockerfile)
* [`2-debian-10`, `2.0.0-debian-10-r0`, `2`, `2.0.0`, `latest` (2/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-kong/blob/2.0.0-debian-10-r0/2/debian-10/Dockerfile)
Subscribe to project updates by watching the [bitnami/kong GitHub repo](https://github.com/bitnami/bitnami-docker-kong).