diff --git a/bitnami/airflow-worker/2/debian-12/Dockerfile b/bitnami/airflow-worker/2/debian-12/Dockerfile index 5cc2d74c3da0..e79ac2618c06 100644 --- a/bitnami/airflow-worker/2/debian-12/Dockerfile +++ b/bitnami/airflow-worker/2/debian-12/Dockerfile @@ -7,10 +7,10 @@ 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-03-04T19:27:07Z" \ + org.opencontainers.image.created="2024-03-06T00:39:32Z" \ org.opencontainers.image.description="Application packaged by VMware, Inc" \ org.opencontainers.image.licenses="Apache-2.0" \ - org.opencontainers.image.ref.name="2.8.2-debian-12-r2" \ + org.opencontainers.image.ref.name="2.8.2-debian-12-r3" \ org.opencontainers.image.title="airflow-worker" \ org.opencontainers.image.vendor="VMware, Inc." \ org.opencontainers.image.version="2.8.2" diff --git a/bitnami/airflow-worker/2/debian-12/rootfs/opt/bitnami/scripts/airflow-worker-env.sh b/bitnami/airflow-worker/2/debian-12/rootfs/opt/bitnami/scripts/airflow-worker-env.sh index dc78dce44e75..156e98874e4a 100644 --- a/bitnami/airflow-worker/2/debian-12/rootfs/opt/bitnami/scripts/airflow-worker-env.sh +++ b/bitnami/airflow-worker/2/debian-12/rootfs/opt/bitnami/scripts/airflow-worker-env.sh @@ -28,6 +28,7 @@ airflow_worker_env_vars=( AIRFLOW_RAW_FERNET_KEY AIRFLOW_FERNET_KEY AIRFLOW_SECRET_KEY + AIRFLOW_FORCE_OVERWRITE_CONF_FILE AIRFLOW_WEBSERVER_HOST AIRFLOW_WEBSERVER_PORT_NUMBER AIRFLOW_HOSTNAME_CALLABLE @@ -79,6 +80,7 @@ export AIRFLOW_EXECUTOR="${AIRFLOW_EXECUTOR:-SequentialExecutor}" export AIRFLOW_RAW_FERNET_KEY="${AIRFLOW_RAW_FERNET_KEY:-}" export AIRFLOW_FERNET_KEY="${AIRFLOW_FERNET_KEY:-}" export AIRFLOW_SECRET_KEY="${AIRFLOW_SECRET_KEY:-}" +export AIRFLOW_FORCE_OVERWRITE_CONF_FILE="${AIRFLOW_FORCE_OVERWRITE_CONF_FILE:-no}" export AIRFLOW_WEBSERVER_HOST="${AIRFLOW_WEBSERVER_HOST:-127.0.0.1}" export AIRFLOW_WEBSERVER_PORT_NUMBER="${AIRFLOW_WEBSERVER_PORT_NUMBER:-8080}" export AIRFLOW_HOSTNAME_CALLABLE="${AIRFLOW_HOSTNAME_CALLABLE:-}" diff --git a/bitnami/airflow-worker/2/debian-12/rootfs/opt/bitnami/scripts/libairflow.sh b/bitnami/airflow-worker/2/debian-12/rootfs/opt/bitnami/scripts/libairflow.sh index b21d4cb26ed7..bcdf77ef557a 100644 --- a/bitnami/airflow-worker/2/debian-12/rootfs/opt/bitnami/scripts/libairflow.sh +++ b/bitnami/airflow-worker/2/debian-12/rootfs/opt/bitnami/scripts/libairflow.sh @@ -115,7 +115,7 @@ airflow_initialize() { done # The configuration file is not persisted. If it is not provided, generate it based on env vars - if [[ ! -f "$AIRFLOW_CONF_FILE" ]]; then + if [[ ! -f "$AIRFLOW_CONF_FILE" ]] || is_boolean_yes "$AIRFLOW_FORCE_OVERWRITE_CONF_FILE"; then info "No injected configuration file found. Creating default config file" airflow_generate_config else diff --git a/bitnami/airflow-worker/2/debian-12/rootfs/opt/bitnami/scripts/libairflowworker.sh b/bitnami/airflow-worker/2/debian-12/rootfs/opt/bitnami/scripts/libairflowworker.sh index 9fbebedfe78d..53adc4767ac3 100644 --- a/bitnami/airflow-worker/2/debian-12/rootfs/opt/bitnami/scripts/libairflowworker.sh +++ b/bitnami/airflow-worker/2/debian-12/rootfs/opt/bitnami/scripts/libairflowworker.sh @@ -72,7 +72,7 @@ airflow_worker_initialize() { done # The configuration file is not persisted. If it is not provided, generate it based on env vars - if [[ ! -f "$AIRFLOW_CONF_FILE" ]]; then + if [[ ! -f "$AIRFLOW_CONF_FILE" ]] || is_boolean_yes "$AIRFLOW_FORCE_OVERWRITE_CONF_FILE"; then info "No injected configuration file found. Creating default config file" airflow_worker_generate_config else diff --git a/bitnami/airflow-worker/README.md b/bitnami/airflow-worker/README.md index 8e47f972f100..0b92ec174bde 100644 --- a/bitnami/airflow-worker/README.md +++ b/bitnami/airflow-worker/README.md @@ -288,24 +288,25 @@ This container supports the installation of additional python modules at start-u #### Customizable environment variables -| Name | Description | Default Value | -|---------------------------------|-------------------------------------------------------------------|----------------------| -| `AIRFLOW_EXECUTOR` | Airflow executor. | `SequentialExecutor` | -| `AIRFLOW_EXECUTOR` | Airflow executor. | `CeleryExecutor` | -| `AIRFLOW_WEBSERVER_HOST` | Airflow webserver host | `127.0.0.1` | -| `AIRFLOW_WEBSERVER_PORT_NUMBER` | Airflow webserver port. | `8080` | -| `AIRFLOW_HOSTNAME_CALLABLE` | Method to obtain the hostname. | `socket.gethostname` | -| `AIRFLOW_DATABASE_HOST` | Hostname for PostgreSQL server. | `postgresql` | -| `AIRFLOW_DATABASE_HOST` | Hostname for PostgreSQL server. | `127.0.0.1` | -| `AIRFLOW_DATABASE_PORT_NUMBER` | Port used by PostgreSQL server. | `5432` | -| `AIRFLOW_DATABASE_NAME` | Database name that Airflow will use to connect with the database. | `bitnami_airflow` | -| `AIRFLOW_DATABASE_USERNAME` | Database user that Airflow will use to connect with the database. | `bn_airflow` | -| `AIRFLOW_DATABASE_USE_SSL` | Set to yes if the database is using SSL. | `no` | -| `AIRFLOW_REDIS_USE_SSL` | Set to yes if Redis(R) uses SSL. | `no` | -| `REDIS_HOST` | Hostname for Redis(R) server. | `redis` | -| `REDIS_HOST` | Hostname for Redis(R) server. | `127.0.0.1` | -| `REDIS_PORT_NUMBER` | Port used by Redis(R) server. | `6379` | -| `REDIS_DATABASE` | Name of the Redis(R) database. | `1` | +| Name | Description | Default Value | +|-------------------------------------|-------------------------------------------------------------------|----------------------| +| `AIRFLOW_EXECUTOR` | Airflow executor. | `SequentialExecutor` | +| `AIRFLOW_EXECUTOR` | Airflow executor. | `CeleryExecutor` | +| `AIRFLOW_FORCE_OVERWRITE_CONF_FILE` | Force the airflow.cfg config file generation. | `no` | +| `AIRFLOW_WEBSERVER_HOST` | Airflow webserver host | `127.0.0.1` | +| `AIRFLOW_WEBSERVER_PORT_NUMBER` | Airflow webserver port. | `8080` | +| `AIRFLOW_HOSTNAME_CALLABLE` | Method to obtain the hostname. | `socket.gethostname` | +| `AIRFLOW_DATABASE_HOST` | Hostname for PostgreSQL server. | `postgresql` | +| `AIRFLOW_DATABASE_HOST` | Hostname for PostgreSQL server. | `127.0.0.1` | +| `AIRFLOW_DATABASE_PORT_NUMBER` | Port used by PostgreSQL server. | `5432` | +| `AIRFLOW_DATABASE_NAME` | Database name that Airflow will use to connect with the database. | `bitnami_airflow` | +| `AIRFLOW_DATABASE_USERNAME` | Database user that Airflow will use to connect with the database. | `bn_airflow` | +| `AIRFLOW_DATABASE_USE_SSL` | Set to yes if the database is using SSL. | `no` | +| `AIRFLOW_REDIS_USE_SSL` | Set to yes if Redis(R) uses SSL. | `no` | +| `REDIS_HOST` | Hostname for Redis(R) server. | `redis` | +| `REDIS_HOST` | Hostname for Redis(R) server. | `127.0.0.1` | +| `REDIS_PORT_NUMBER` | Port used by Redis(R) server. | `6379` | +| `REDIS_DATABASE` | Name of the Redis(R) database. | `1` | #### Read-only environment variables