docker-airflow
docker-airflow copied to clipboard
setting up Fernet key when doing docker run
Hi I'm new to docker and airflow and I'm trying to run this setup locally by using the two commands below. docker build --rm -t airflow-image . docker run -p 8080:8080 airflow-image
I do this because it allows me to adjust the .cfg file for connecting with a mysql database. But now I'm running in to an issue with the fernet key. I do see it as a variable in the .cfg file as : fernet_key = $FERNET_KEY
But I don't think this actually sets a fernet key. I do see that in scripts/entrypoint.sh there is something that generates a fernet key. My questions are:
- Is that entrypoint.sh running when I do my docker run? And if so how do I connect the fernet keys to the .cfg file before doing docker run?
- If not how to I generate a fernet key and place it in the docker .cfg file below I do docker run?
- Can I change the .cfg file within the docker container while its running?
Any help is appreciated. Thanks!