From 3c312c99f0763abb898aac9b06b658c7e5af35cb Mon Sep 17 00:00:00 2001 From: Bitnami Bot Date: Fri, 8 Jan 2021 09:09:51 +0000 Subject: [PATCH] 7.10.1-debian-10-r30 release --- bitnami/logstash/7/debian-10/Dockerfile | 2 +- .../prebuildfs/opt/bitnami/scripts/libhook.sh | 16 ++++++++++++++++ bitnami/logstash/README.md | 2 +- 3 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 bitnami/logstash/7/debian-10/prebuildfs/opt/bitnami/scripts/libhook.sh diff --git a/bitnami/logstash/7/debian-10/Dockerfile b/bitnami/logstash/7/debian-10/Dockerfile index 89bf39043b24..58e2e80e6e36 100644 --- a/bitnami/logstash/7/debian-10/Dockerfile +++ b/bitnami/logstash/7/debian-10/Dockerfile @@ -19,7 +19,7 @@ RUN chmod g+rwX /opt/bitnami COPY rootfs / RUN /opt/bitnami/scripts/logstash/postunpack.sh ENV BITNAMI_APP_NAME="logstash" \ - BITNAMI_IMAGE_VERSION="7.10.1-debian-10-r29" \ + BITNAMI_IMAGE_VERSION="7.10.1-debian-10-r30" \ JAVA_HOME="/opt/bitnami/java" \ PATH="/opt/bitnami/java/bin:/opt/bitnami/logstash/bin:/opt/bitnami/common/bin:$PATH" diff --git a/bitnami/logstash/7/debian-10/prebuildfs/opt/bitnami/scripts/libhook.sh b/bitnami/logstash/7/debian-10/prebuildfs/opt/bitnami/scripts/libhook.sh new file mode 100644 index 000000000000..9694852a7d25 --- /dev/null +++ b/bitnami/logstash/7/debian-10/prebuildfs/opt/bitnami/scripts/libhook.sh @@ -0,0 +1,16 @@ +#!/bin/bash +# +# Library to use for scripts expected to be used as Kubernetes lifecycle hooks + +# shellcheck disable=SC1091 + +# Load generic libraries +. /opt/bitnami/scripts/liblog.sh +. /opt/bitnami/scripts/libos.sh + +# Override functions that log to stdout/stderr of the current process, so they print to process 1 +for function_to_override in stderr_print debug_execute; do + # Output is sent to output of process 1 and thus end up in the container log + # The hook output in general isn't saved + eval "$(declare -f "$function_to_override") >/proc/1/fd/1 2>/proc/1/fd/2" +done diff --git a/bitnami/logstash/README.md b/bitnami/logstash/README.md index 73707a722376..e16591acc04c 100644 --- a/bitnami/logstash/README.md +++ b/bitnami/logstash/README.md @@ -42,7 +42,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/). -* [`7`, `7-debian-10`, `7.10.1`, `7.10.1-debian-10-r29`, `latest` (7/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-logstash/blob/7.10.1-debian-10-r29/7/debian-10/Dockerfile) +* [`7`, `7-debian-10`, `7.10.1`, `7.10.1-debian-10-r30`, `latest` (7/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-logstash/blob/7.10.1-debian-10-r30/7/debian-10/Dockerfile) Subscribe to project updates by watching the [bitnami/logstash GitHub repo](https://github.com/bitnami/bitnami-docker-logstash).