diff --git a/bitnami/airflow-worker/1/debian-10/Dockerfile b/bitnami/airflow-worker/1/debian-10/Dockerfile index 1bcd00da8bc3..ad6060d19dfa 100644 --- a/bitnami/airflow-worker/1/debian-10/Dockerfile +++ b/bitnami/airflow-worker/1/debian-10/Dockerfile @@ -27,7 +27,7 @@ RUN /opt/bitnami/scripts/airflow-worker/postunpack.sh RUN /opt/bitnami/scripts/locales/add-extra-locales.sh ENV AIRFLOW_HOME="/opt/bitnami/airflow" \ BITNAMI_APP_NAME="airflow-worker" \ - BITNAMI_IMAGE_VERSION="1.10.15-debian-10-r96" \ + BITNAMI_IMAGE_VERSION="1.10.15-debian-10-r97" \ C_FORCE_ROOT="True" \ LANG="en_US.UTF-8" \ LANGUAGE="en_US:en" \ diff --git a/bitnami/airflow-worker/1/debian-10/rootfs/opt/bitnami/scripts/libairflow.sh b/bitnami/airflow-worker/1/debian-10/rootfs/opt/bitnami/scripts/libairflow.sh index 5b703a3eddfb..9cb22e82cf63 100644 --- a/bitnami/airflow-worker/1/debian-10/rootfs/opt/bitnami/scripts/libairflow.sh +++ b/bitnami/airflow-worker/1/debian-10/rootfs/opt/bitnami/scripts/libairflow.sh @@ -239,17 +239,17 @@ airflow_configure_webserver_authentication() { replace_in_file "$AIRFLOW_WEBSERVER_CONF_FILE" "# AUTH_USER_REGISTRATION = True" "AUTH_USER_REGISTRATION = True" airflow_webserver_conf_set "AUTH_TYPE" "AUTH_LDAP" replace_in_file "$AIRFLOW_WEBSERVER_CONF_FILE" "# from flask_appbuilder.security.manager import AUTH_LDAP" "from flask_appbuilder.security.manager import AUTH_LDAP" - airflow_webserver_conf_set "AUTH_LDAP_SERVER" "$AIRFLOW_LDAP_URI" + airflow_webserver_conf_set "AUTH_LDAP_SERVER" "'$AIRFLOW_LDAP_URI'" airflow_webserver_conf_set "AUTH_LDAP_SEARCH" "$AIRFLOW_LDAP_SEARCH" airflow_webserver_conf_set "AUTH_LDAP_BIND_USER" "$AIRFLOW_LDAP_BIND_USER" airflow_webserver_conf_set "AUTH_LDAP_BIND_PASSWORD" "$AIRFLOW_LDAP_BIND_PASSWORD" airflow_webserver_conf_set "AUTH_LDAP_UID_FIELD" "$AIRFLOW_LDAP_UID_FIELD" airflow_webserver_conf_set "AUTH_LDAP_USE_TLS" "$AIRFLOW_LDAP_USE_TLS" airflow_webserver_conf_set "AUTH_LDAP_ALLOW_SELF_SIGNED" "$AIRFLOW_LDAP_ALLOW_SELF_SIGNED" - if [[ "$AIRFLOW_LDAP_USE_TLS" == "True" ]]; then + if [[ "$AIRFLOW_LDAP_USE_TLS" == "True" ]]; then airflow_webserver_conf_set "AUTH_LDAP_TLS_CACERTFILE" "$AIRFLOW_LDAP_TLS_CA_CERTIFICATE" fi - airflow_webserver_conf_set "AUTH_USER_REGISTRATION_ROLE" "$AIRFLOW_USER_REGISTRATION_ROLE" + airflow_webserver_conf_set "AUTH_USER_REGISTRATION_ROLE" "'$AIRFLOW_USER_REGISTRATION_ROLE'" fi } @@ -271,7 +271,7 @@ airflow_webserver_conf_set() { # Check if the value was set before if grep -q "^#*\\s*${key} =.*$" "$file"; then # Update the existing key - replace_in_file "$file" "^#*\\s*${key} =.*$" "${key} = \"${value}\"" false + replace_in_file "$file" "^#*\\s*${key} =.*$" "${key} = ${value}" false else # Add a new key printf '\n%s="%s"' "$key" "$value" >>"$file" diff --git a/bitnami/airflow-worker/README.md b/bitnami/airflow-worker/README.md index e4230a5e6190..aca5da93abda 100644 --- a/bitnami/airflow-worker/README.md +++ b/bitnami/airflow-worker/README.md @@ -34,7 +34,7 @@ Learn more about the Bitnami tagging policy and the difference between rolling t * [`2`, `2-debian-10`, `2.1.1`, `2.1.1-debian-10-r5`, `latest` (2/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-airflow-worker/blob/2.1.1-debian-10-r5/2/debian-10/Dockerfile) -* [`1`, `1-debian-10`, `1.10.15`, `1.10.15-debian-10-r96` (1/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-airflow-worker/blob/1.10.15-debian-10-r96/1/debian-10/Dockerfile) +* [`1`, `1-debian-10`, `1.10.15`, `1.10.15-debian-10-r97` (1/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-airflow-worker/blob/1.10.15-debian-10-r97/1/debian-10/Dockerfile) Subscribe to project updates by watching the [bitnami/airflow GitHub repo](https://github.com/bitnami/bitnami-docker-airflow-worker).