6.8.22-debian-10-r4 release

This commit is contained in:
Bitnami Bot 2021-12-23 19:30:36 +00:00
parent b95a2dbecf
commit d09c0ac3dc
3 changed files with 92 additions and 90 deletions

View File

@ -23,7 +23,7 @@ COPY rootfs /
RUN /opt/bitnami/scripts/elasticsearch/postunpack.sh
RUN /opt/bitnami/scripts/java/postunpack.sh
ENV BITNAMI_APP_NAME="elasticsearch" \
BITNAMI_IMAGE_VERSION="6.8.22-debian-10-r3" \
BITNAMI_IMAGE_VERSION="6.8.22-debian-10-r4" \
JAVA_HOME="/opt/bitnami/java" \
LD_LIBRARY_PATH="/opt/bitnami/elasticsearch/jdk/lib:/opt/bitnami/elasticsearch/jdk/lib/server:$LD_LIBRARY_PATH"

View File

@ -7,6 +7,7 @@
# Load Generic Libraries
. /opt/bitnami/scripts/liblog.sh
. /opt/bitnami/scripts/libfs.sh
. /opt/bitnami/scripts/libvalidations.sh
# Functions
@ -53,11 +54,11 @@ ensure_group_exists() {
shift 1
while [ "$#" -gt 0 ]; do
case "$1" in
-i|--gid)
-i | --gid)
shift
gid="${1:?missing gid}"
;;
-s|--system)
-s | --system)
is_system_user=true
;;
*)
@ -71,7 +72,7 @@ ensure_group_exists() {
if ! group_exists "$group"; then
local -a args=("$group")
if [[ -n "$gid" ]]; then
if group_exists "$gid" ; then
if group_exists "$gid"; then
error "The GID $gid is already in use." >&2
return 1
fi
@ -107,23 +108,23 @@ ensure_user_exists() {
shift 1
while [ "$#" -gt 0 ]; do
case "$1" in
-i|--uid)
-i | --uid)
shift
uid="${1:?missing uid}"
;;
-g|--group)
-g | --group)
shift
group="${1:?missing group}"
;;
-a|--append-groups)
-a | --append-groups)
shift
append_groups="${1:?missing append_groups}"
;;
-h|--home)
-h | --home)
shift
home="${1:?missing home directory}"
;;
-s|--system)
-s | --system)
is_system_user=true
;;
*)
@ -137,7 +138,7 @@ ensure_user_exists() {
if ! user_exists "$user"; then
local -a user_args=("-N" "$user")
if [[ -n "$uid" ]]; then
if user_exists "$uid" ; then
if user_exists "$uid"; then
error "The UID $uid is already in use."
return 1
fi
@ -157,7 +158,7 @@ ensure_user_exists() {
if [[ -n "$append_groups" ]]; then
local -a groups
read -ra groups <<< "$(tr ',;' ' ' <<< "$append_groups")"
read -ra groups <<<"$(tr ',;' ' ' <<<"$append_groups")"
for group in "${groups[@]}"; do
ensure_group_exists "$group"
usermod -aG "$group" "$user" >/dev/null 2>&1
@ -225,6 +226,7 @@ get_os_metadata() {
*)
error "Unknown flag ${flag_name}"
return 1
;;
esac
}
@ -322,7 +324,6 @@ convert_to_mb() {
echo "$amount"
}
#########################
# Redirects output to /dev/null if debug mode is disabled
# Globals:
@ -333,7 +334,7 @@ convert_to_mb() {
# None
#########################
debug_execute() {
if ${BITNAMI_DEBUG:-false}; then
if is_boolean_yes "${BITNAMI_DEBUG:-false}"; then
"$@"
else
"$@" >/dev/null 2>&1
@ -355,8 +356,8 @@ retry_while() {
local sleep_time="${3:-5}"
local return_value=1
read -r -a command <<< "$cmd"
for ((i = 1 ; i <= retries ; i+=1 )); do
read -r -a command <<<"$cmd"
for ((i = 1; i <= retries; i += 1)); do
"${command[@]}" && return_value=0 && break
sleep "$sleep_time"
done
@ -383,11 +384,11 @@ generate_random_string() {
# Validate arguments
while [[ "$#" -gt 0 ]]; do
case "$1" in
-t|--type)
-t | --type)
shift
type="$1"
;;
-c|--count)
-c | --count)
shift
count="$1"
;;
@ -412,6 +413,7 @@ generate_random_string() {
*)
echo "Invalid type ${type}" >&2
return 1
;;
esac
# Obtain count + 10 lines from /dev/urandom to ensure that the resulting string has the expected size
# Note there is a very small chance of strings starting with EOL character
@ -457,7 +459,7 @@ convert_to_hex() {
local -r str=${1:?missing input string}
local -i iterator
local char
for ((iterator=0; iterator<${#str}; iterator++)); do
for ((iterator = 0; iterator < ${#str}; iterator++)); do
char=${str:iterator:1}
printf '%x' "'${char}"
done

View File

@ -52,7 +52,7 @@ Learn more about the Bitnami tagging policy and the difference between rolling t
* [`7`, `7-debian-10`, `7.16.2`, `7.16.2-debian-10-r4`, `latest` (7/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-elasticsearch/blob/7.16.2-debian-10-r4/7/debian-10/Dockerfile)
* [`7.10.2`, `7.10.2-debian-10`, `7.10.2-debian-10-r311` (7.10.2/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-elasticsearch/blob/7.10.2-debian-10-r311/7.10.2/debian-10/Dockerfile)
* [`6`, `6-debian-10`, `6.8.22`, `6.8.22-debian-10-r3` (6/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-elasticsearch/blob/6.8.22-debian-10-r3/6/debian-10/Dockerfile)
* [`6`, `6-debian-10`, `6.8.22`, `6.8.22-debian-10-r4` (6/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-elasticsearch/blob/6.8.22-debian-10-r4/6/debian-10/Dockerfile)
Subscribe to project updates by watching the [bitnami/elasticsearch GitHub repo](https://github.com/bitnami/bitnami-docker-elasticsearch).
## Get this image