2.9.0-debian-10-r8 release

This commit is contained in:
Bitnami Bot
2021-10-19 11:35:41 +00:00
parent 8f695e7e5a
commit 433b118144
3 changed files with 23 additions and 2 deletions

View File

@@ -17,7 +17,7 @@ RUN mkdir /.m2 && chmod -R g+rwX /.m2
COPY rootfs /
ENV BITNAMI_APP_NAME="spring-cloud-dataflow-composed-task-runner" \
BITNAMI_IMAGE_VERSION="2.9.0-debian-10-r5" \
BITNAMI_IMAGE_VERSION="2.9.0-debian-10-r8" \
PATH="/opt/bitnami/java/bin:/opt/bitnami/common/bin:$PATH"
USER 1001

View File

@@ -140,3 +140,24 @@ parse_uri() {
esac
[[ "$uri" =~ $URI_REGEX ]] && echo "${BASH_REMATCH[${index}]}"
}
########################
# Wait for a HTTP connection to succeed
# Globals:
# *
# Arguments:
# $1 - URL to wait for
# $2 - Maximum amount of retries (optional)
# $3 - Time between retries (optional)
# Returns:
# true if the HTTP connection succeeded, false otherwise
#########################
wait_for_http_connection() {
local url="${1:?missing url}"
local retries="${2:-}"
local sleep_time="${3:-}"
if ! retry_while "debug_execute curl --silent ${url}" "$retries" "$sleep_time"; then
error "Could not connect to ${url}"
return 1
fi
}