Skip to content

Commit

Permalink
remove sql_alchemy_conn from airflow.cfg and use env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
allenkallz committed Nov 28, 2023
1 parent 1a47d4d commit 359654e
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docker/development/docker-compose-postgres.yml
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ services:
DB_PASSWORD: ${AIRFLOW_DB_PASSWORD:-airflow_pass}
entrypoint: /bin/bash
command:
- "/opt/airflow/ingestion_dependency.sh"
- "source /opt/airflow/ingestion_dependency.sh"
depends_on:
opensearch:
condition: service_started
Expand Down
2 changes: 1 addition & 1 deletion docker/development/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ services:
DB_PASSWORD: ${AIRFLOW_DB_PASSWORD:-airflow_pass}
entrypoint: /bin/bash
command:
- "/opt/airflow/ingestion_dependency.sh"
- "source /opt/airflow/ingestion_dependency.sh"
depends_on:
elasticsearch:
condition: service_started
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ services:
DB_PASSWORD: ${AIRFLOW_DB_PASSWORD:-airflow_pass}
entrypoint: /bin/bash
command:
- "/opt/airflow/ingestion_dependency.sh"
- "source /opt/airflow/ingestion_dependency.sh"
expose:
- 8080
ports:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ services:
DB_PASSWORD: ${AIRFLOW_DB_PASSWORD:-airflow_pass}
entrypoint: /bin/bash
command:
- "/opt/airflow/ingestion_dependency.sh"
- "source /opt/airflow/ingestion_dependency.sh"
expose:
- 8080
ports:
Expand Down
2 changes: 1 addition & 1 deletion docker/docker-compose-quickstart/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ services:
DB_PASSWORD: ${AIRFLOW_DB_PASSWORD:-airflow_pass}
entrypoint: /bin/bash
command:
- "/opt/airflow/ingestion_dependency.sh"
- "source /opt/airflow/ingestion_dependency.sh"
expose:
- 8080
ports:
Expand Down
2 changes: 1 addition & 1 deletion ingestion/ingestion_dependency.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ AIRFLOW_ADMIN_PASSWORD=${AIRFLOW_ADMIN_PASSWORD:-admin}

OPENMETADATA_SERVER=${OPENMETADATA_SERVER:-"http://openmetadata-server:8585"}

sed -i 's,^#*[ ]*\(sql_alchemy_conn[ ]*=\).*,\1 '${DB_CONN}',g' /opt/airflow/airflow.cfg
export AIRFLOW__DATABASE__SQL_ALCHEMY_CONN="${DB_CONN}"

airflow db init

Expand Down

0 comments on commit 359654e

Please sign in to comment.