mirror of
https://github.com/bitnami/containers.git
synced 2026-03-21 15:29:05 +08:00
7.6.2-debian-10-r9 release
This commit is contained in:
@@ -18,7 +18,7 @@ RUN apt-get update && apt-get upgrade -y && \
|
||||
COPY rootfs /
|
||||
RUN /opt/bitnami/scripts/logstash/postunpack.sh
|
||||
ENV BITNAMI_APP_NAME="logstash" \
|
||||
BITNAMI_IMAGE_VERSION="7.6.2-debian-10-r8" \
|
||||
BITNAMI_IMAGE_VERSION="7.6.2-debian-10-r9" \
|
||||
PATH="/opt/bitnami/logstash/bin:/opt/bitnami/java/bin:/opt/bitnami/common/bin:$PATH"
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
@@ -21,6 +21,31 @@ dns_lookup() {
|
||||
getent ahosts "$host" | awk '/STREAM/ {print $1 }'
|
||||
}
|
||||
|
||||
#########################
|
||||
## Wait for a hostname and return the IP
|
||||
# Arguments:
|
||||
# $1 - hostname
|
||||
# $2 - number of retries
|
||||
# $3 - seconds to wait between retries
|
||||
# Returns:
|
||||
# - IP address that corresponds to the hostname
|
||||
#########################
|
||||
wait_for_dns_lookup() {
|
||||
local hostname="${1:?hostname is missing}"
|
||||
local retries="${2:-5}"
|
||||
local seconds="${3:-1}"
|
||||
check_host() {
|
||||
if [[ $(dns_lookup "$hostname") == "" ]]; then
|
||||
false
|
||||
else
|
||||
true
|
||||
fi
|
||||
}
|
||||
# Wait 10 minutes for the host to be ready
|
||||
retry_while "check_host ${hostname}" "$retries" "$seconds"
|
||||
dns_lookup "$hostname"
|
||||
}
|
||||
|
||||
########################
|
||||
# Get machine's IP
|
||||
# Arguments:
|
||||
|
||||
Reference in New Issue
Block a user