docker-airflow icon indicating copy to clipboard operation
docker-airflow copied to clipboard

setting up Fernet key when doing docker run

Open lzhou519 opened this issue 5 years ago • 0 comments

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:

  1. 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?
  2. If not how to I generate a fernet key and place it in the docker .cfg file below I do docker run?
  3. Can I change the .cfg file within the docker container while its running?

Any help is appreciated. Thanks!

lzhou519 avatar Jun 14 '20 03:06 lzhou519