From 479291db27ceb123b7d4067622b0fe3e96c90fef Mon Sep 17 00:00:00 2001 From: Travis Thompson Date: Tue, 12 Apr 2022 03:50:48 -0700 Subject: [PATCH] adding REDIS_DATABASE env var (#11) * adding REDIS_DATABASE env var, this allows defining an alterative redis database number so that a redis server can be shared by multiple consumers Signed-off-by: Travis W Thompson * adding signed off Signed-off-by: Travis W Thompson Co-authored-by: Travis W Thompson --- .../rootfs/opt/bitnami/scripts/airflow-scheduler-env.sh | 2 ++ bitnami/airflow-scheduler/README.md | 1 + 2 files changed, 3 insertions(+) diff --git a/bitnami/airflow-scheduler/2/debian-10/rootfs/opt/bitnami/scripts/airflow-scheduler-env.sh b/bitnami/airflow-scheduler/2/debian-10/rootfs/opt/bitnami/scripts/airflow-scheduler-env.sh index 6b1603677981..04c5c41409c0 100644 --- a/bitnami/airflow-scheduler/2/debian-10/rootfs/opt/bitnami/scripts/airflow-scheduler-env.sh +++ b/bitnami/airflow-scheduler/2/debian-10/rootfs/opt/bitnami/scripts/airflow-scheduler-env.sh @@ -38,6 +38,7 @@ airflow_scheduler_env_vars=( AIRFLOW_REDIS_USE_SSL REDIS_HOST REDIS_PORT_NUMBER + REDIS_DATABASE REDIS_USER REDIS_PASSWORD ) @@ -89,6 +90,7 @@ export AIRFLOW_DATABASE_USE_SSL="${AIRFLOW_DATABASE_USE_SSL:-no}" export AIRFLOW_REDIS_USE_SSL="${AIRFLOW_REDIS_USE_SSL:-no}" export REDIS_HOST="${REDIS_HOST:-redis}" export REDIS_PORT_NUMBER="${REDIS_PORT_NUMBER:-6379}" +export REDIS_DATABASE="${REDIS_DATABASE:-1}" export REDIS_USER="${REDIS_USER:-}" export REDIS_PASSWORD="${REDIS_PASSWORD:-}" diff --git a/bitnami/airflow-scheduler/README.md b/bitnami/airflow-scheduler/README.md index 176ad2ccb4af..94c3f5c822cd 100644 --- a/bitnami/airflow-scheduler/README.md +++ b/bitnami/airflow-scheduler/README.md @@ -315,6 +315,7 @@ The Apache Airflow Scheduler instance can be customized by specifying environmen - `AIRFLOW_REDIS_USE_SSL`: Set to yes if Redis(TM) uses SSL. Default: **no** - `REDIS_HOST`: Hostname for Redis(TM) server. Default: **redis** - `REDIS_PORT_NUMBER`: Port used by Redis(TM) server. Default: **6379** +- `REDIS_DATABASE`: Database number for Redis(TM) server. Default: **1** - `REDIS_USER`: USER that Apache Airflow Scheduler will use to connect with Redis(TM). No defaults. - `REDIS_PASSWORD`: Password that Apache Airflow Scheduler will use to connect with Redis(TM). No defaults.