[bitnami/elasticsearch] Release 8.6.2-debian-11-r2 (#24904)

Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>
This commit is contained in:
Bitnami Bot
2023-02-22 15:49:07 +01:00
committed by GitHub
parent 36bea99c6f
commit a32fbf6f23
3 changed files with 23 additions and 24 deletions

View File

@@ -5,10 +5,10 @@ ARG JAVA_EXTRA_SECURITY_DIR="/bitnami/java/extra-security"
ARG TARGETARCH
LABEL org.opencontainers.image.base.name="docker.io/bitnami/minideb:bullseye" \
org.opencontainers.image.created="2023-02-20T15:18:25Z" \
org.opencontainers.image.created="2023-02-22T14:09:39Z" \
org.opencontainers.image.description="Application packaged by VMware, Inc" \
org.opencontainers.image.licenses="Apache-2.0" \
org.opencontainers.image.ref.name="8.6.2-debian-11-r1" \
org.opencontainers.image.ref.name="8.6.2-debian-11-r2" \
org.opencontainers.image.title="elasticsearch" \
org.opencontainers.image.vendor="VMware, Inc." \
org.opencontainers.image.version="8.6.2"
@@ -26,9 +26,9 @@ RUN install_packages ca-certificates curl libasound2-dev libc6 libfreetype6 libf
RUN mkdir -p /tmp/bitnami/pkg/cache/ && cd /tmp/bitnami/pkg/cache/ && \
COMPONENTS=( \
"yq-4.31.1-0-linux-${OS_ARCH}-debian-11" \
"java-17.0.6-10-1-linux-${OS_ARCH}-debian-11" \
"java-17.0.6-10-2-linux-${OS_ARCH}-debian-11" \
"gosu-1.16.0-2-linux-${OS_ARCH}-debian-11" \
"elasticsearch-8.6.2-0-linux-${OS_ARCH}-debian-11" \
"elasticsearch-8.6.2-1-linux-${OS_ARCH}-debian-11" \
) && \
for COMPONENT in "${COMPONENTS[@]}"; do \
if [ ! -f "${COMPONENT}.tar.gz" ]; then \

View File

@@ -4,7 +4,7 @@
"digest": "8928590bec3c6efe7f0e4f4694574d471a8bd3658208182916ed2539bb9090f1",
"distro": "debian-11",
"type": "NAMI",
"version": "8.6.2-0"
"version": "8.6.2-1"
},
"gosu": {
"arch": "amd64",
@@ -15,10 +15,10 @@
},
"java": {
"arch": "amd64",
"digest": "616d810dc3a926249db7843e25676da79c536a6fb01af626cd6ce88d7aa4c3e1",
"digest": "09eb316f02e065beb59e8c3cc8f2f908879faf7f4902cd1cc4b9fcd25bd528ca",
"distro": "debian-11",
"type": "NAMI",
"version": "17.0.6-10-1"
"version": "17.0.6-10-2"
},
"yq": {
"arch": "amd64",

View File

@@ -305,6 +305,8 @@ generate_systemd_conf() {
local exec_reload=""
local restart="always"
local pid_file=""
local standard_output="journal"
local standard_error=""
# Parse CLI flags
shift
while [[ "$#" -gt 0 ]]; do
@@ -318,6 +320,8 @@ generate_systemd_conf() {
| --exec-reload \
| --restart \
| --pid-file \
| --standard-output \
| --standard-error \
)
var_name="$(echo "$1" | sed -e "s/^--//" -e "s/-/_/g")"
shift
@@ -362,36 +366,33 @@ ExecStart=${exec_start}
EOF
# Optional stop and reload commands
if [[ -n "$exec_stop" ]]; then
cat >> "$service_file" <<EOF
ExecStop=${exec_stop}
EOF
cat >> "$service_file" <<< "ExecStop=${exec_stop}"
fi
if [[ -n "$exec_reload" ]]; then
cat >> "$service_file" <<EOF
ExecReload=${exec_reload}
EOF
cat >> "$service_file" <<< "ExecReload=${exec_reload}"
fi
# User and group
if [[ -n "$user" ]]; then
cat >> "$service_file" <<EOF
User=${user}
EOF
cat >> "$service_file" <<< "User=${user}"
fi
if [[ -n "$group" ]]; then
cat >> "$service_file" <<EOF
Group=${group}
EOF
cat >> "$service_file" <<< "Group=${group}"
fi
# PID file allows to determine if the main process is running properly (for Restart=always)
if [[ -n "$pid_file" ]]; then
cat >> "$service_file" <<EOF
PIDFile=${pid_file}
EOF
cat >> "$service_file" <<< "PIDFile=${pid_file}"
fi
# Environment flags (may be specified multiple times in a unit)
if [[ -n "$environment" ]]; then
cat >> "$service_file" <<< "$environment"
fi
# Logging
if [[ -n "$standard_output" ]]; then
cat >> "$service_file" <<< "StandardOutput=${standard_output}"
fi
if [[ -n "$standard_error" ]]; then
cat >> "$service_file" <<< "StandardError=${standard_error}"
fi
cat >> "$service_file" <<EOF
Restart=${restart}
# Optimizations
@@ -400,8 +401,6 @@ IgnoreSIGPIPE=no
KillMode=mixed
# Limits
LimitNOFILE=infinity
# Configure output to appear in instance console output
StandardOutput=journal+console
[Install]
# Enabling/disabling the main bitnami service should cause the same effect for this service