From 44cae022ad242d546a34281d0bd5a4c5da9bdfa2 Mon Sep 17 00:00:00 2001 From: Bitnami Bot Date: Fri, 8 Nov 2024 16:45:39 +0000 Subject: [PATCH] [bitnami/airflow] Release airflow-2.10.3-debian-12-r3 Signed-off-by: Bitnami Bot --- bitnami/airflow/2/debian-12/Dockerfile | 4 +-- .../rootfs/opt/bitnami/scripts/libairflow.sh | 25 ++----------------- 2 files changed, 4 insertions(+), 25 deletions(-) diff --git a/bitnami/airflow/2/debian-12/Dockerfile b/bitnami/airflow/2/debian-12/Dockerfile index 677fe906c798c..a4d8d17736795 100644 --- a/bitnami/airflow/2/debian-12/Dockerfile +++ b/bitnami/airflow/2/debian-12/Dockerfile @@ -8,11 +8,11 @@ ARG TARGETARCH LABEL com.vmware.cp.artifact.flavor="sha256:c50c90cfd9d12b445b011e6ad529f1ad3daea45c26d20b00732fae3cd71f6a83" \ org.opencontainers.image.base.name="docker.io/bitnami/minideb:bookworm" \ - org.opencontainers.image.created="2024-11-08T08:53:51Z" \ + org.opencontainers.image.created="2024-11-08T15:25:41Z" \ org.opencontainers.image.description="Application packaged by Broadcom, Inc." \ org.opencontainers.image.documentation="https://github.com/bitnami/containers/tree/main/bitnami/airflow/README.md" \ org.opencontainers.image.licenses="Apache-2.0" \ - org.opencontainers.image.ref.name="2.10.3-debian-12-r2" \ + org.opencontainers.image.ref.name="2.10.3-debian-12-r3" \ org.opencontainers.image.source="https://github.com/bitnami/containers/tree/main/bitnami/airflow" \ org.opencontainers.image.title="airflow" \ org.opencontainers.image.vendor="Broadcom, Inc." \ diff --git a/bitnami/airflow/2/debian-12/rootfs/opt/bitnami/scripts/libairflow.sh b/bitnami/airflow/2/debian-12/rootfs/opt/bitnami/scripts/libairflow.sh index 8e945d6805380..836dd421e7458 100644 --- a/bitnami/airflow/2/debian-12/rootfs/opt/bitnami/scripts/libairflow.sh +++ b/bitnami/airflow/2/debian-12/rootfs/opt/bitnami/scripts/libairflow.sh @@ -191,8 +191,8 @@ airflow_initialize() { fi ;; *) - info "Waiting for Airflow Webserver to be up" - airflow_wait_for_webserver "$AIRFLOW_WEBSERVER_HOST" "$AIRFLOW_WEBSERVER_PORT_NUMBER" + info "Waiting for db migrations to be completed" + airflow_wait_for_db_migrations if [[ "$AIRFLOW_EXECUTOR" == "CeleryExecutor" || "$AIRFLOW_EXECUTOR" == "CeleryKubernetesExecutor" ]]; then wait-for-port --host "$REDIS_HOST" "$REDIS_PORT_NUMBER" fi @@ -420,27 +420,6 @@ airflow_webserver_conf_set() { fi } -######################## -# Wait for Airflow Webserver -# Globals: -# AIRFLOW_* -# Arguments: -# None -# Returns: -# None -######################### -airflow_wait_for_webserver() { - local -r webserver_host="${1:?missing database host}" - local -r webserver_port="${2:?missing database port}" - check_webserver_connection() { - wait-for-port --host "$webserver_host" "$webserver_port" - } - if ! retry_while "check_webserver_connection"; then - error "Could not connect to the Airflow webserver" - return 1 - fi -} - ######################## # Configure Airflow database # Globals: