pankaj_saini
02/20/2021, 6:59 PMorchestrate/
directory and then adding below line to Dockerfile after COPY . .
, so that my custom webserver_config.py is copied over to .meltano/run/airflow
directory.
RUN mkdir -p .meltano/run/airflow && cp -f orchestrate/webserver_config.py .meltano/run/airflow/webserver_config.py
I know that airflow 2.0 doesn’t yet support a custom location(or file) for WEBSERVER_CONFIG and it has hardcoded it to AIRFLOW_HOME + ‘/webserver_config.py’ , so probably it has to be fixed in airflow to read WEBSERVER_CONFIG through an environment variable before meltano can start supporting custom webserver_config.py. But meanwhile how are others handling this? What I am doing is working well for me, but I want to know if there is a better way to handle this?(Without modifying the default Dockerfile)pankaj_saini
02/21/2021, 7:11 PM["meltano"]
. I want to run couple of things before starting airflow-webserver and meltano UI. And all these can be combined into an entrypoint.sh file. The command in the above question can be added there. Additionally I also want to run meltano user add --overwrite <username> <password>
before starting the meltano ui (I am deploying everything via CICD and don’t want to create a user manually). I guess the custom entrypoint.sh would address this. Any thoughts?douwe_maan
02/22/2021, 4:11 PMorchestrate/webserver_config.py
out of the box and handle copying it itself, but I'd rather wait for the new setting.douwe_maan
02/22/2021, 4:13 PMpankaj_saini
02/22/2021, 5:54 PMmaarten_van_gijssel
08/20/2021, 9:03 AMdouwe_maan
08/23/2021, 3:07 PMmaarten_van_gijssel
08/31/2021, 3:55 PMdouwe_maan
08/31/2021, 3:55 PMniall_woodward
09/08/2021, 10:03 AM