#14028: fix the sed command issue in ingestion dep script (#14029)

* fix the sed command issue in ingestion dep script

* remove sql_alchemy_conn from airflow.cfg and use env variable

* try execute ingestion dep script without source
This commit is contained in:
Harpreet 2023-12-03 21:27:36 +02:00 committed by GitHub
parent 05f19f4542
commit b50f6f8939
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}#" /opt/airflow/airflow.cfg
export AIRFLOW__DATABASE__SQL_ALCHEMY_CONN="${DB_CONN}"
airflow db init