mirror of
https://github.com/bitnami/containers.git
synced 2026-03-13 06:48:08 +08:00
2.9.0-debian-10-r8 release
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user