-
Notifications
You must be signed in to change notification settings - Fork 539
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't setup enviroments for use secrets in docker-swarm #545
Comments
Any possibility to read secrets from enviroments in docker-compose? like _FILE enviroments or something similar... |
Thanks for reply. I tried to apply env_file but same issue. When I use enviroments like:
It's works but if I apply secrets using this in env_file, is not work :( :
Airflow never get broker_url and rabbitmq conection is replaced by redis... I check if everything is right and I don't see any error about secrets/chains: Some debug: I deploy stack and enter in worker airflow container to check if secrets exists:
I execute by hand this enviroments:
And echo is right:
I don't know what I can do, secrets testes, enviroments testesd, no aiflow running with enviroments and secrets but without secrets it works as exepted... |
In the environment file the commands are not executed. Take a look at: https://github.com/jupyterhub/jupyterhub-deploy-docker/blob/master/Makefile#L20 |
Yes,that env file not exeucte anything, but you recommend me env_file and maybe with _CMD II thougth that it will works...no Really that anybody can pass secrets via enviroments¿?¿ is normal in a lot of software I can't understand it. I tried and tried and tried and I can't . I can't understand this makefile applied to my airflow wittfabian:(. I just want tipical workflow: -enviroment: Really that I can't do this in airflow?!?!? |
Reading this makes it sound like it is not supported, but it is quite simple. In docker compose YAML file just use something like
Seems to work fine for me. No |
Hello, I spend so many weeks trying to configure airflow using secrets in docker swarm.
I try to use this config in my compose:
I tried with another bash commands to do cat to this secret and all fails, it never gets enviroments and use redis default.
I tried to follow oficial doc but...
https://airflow.readthedocs.io/en/stable/howto/set-config.html
`The _cmd config options can also be set using a corresponding environment variable the same way the usual config options can. For example:
export AIRFLOW__CORE__SQL_ALCHEMY_CONN_CMD=bash_command_to_run`
Now I'm trying to run my entrypoint (a copy of original entrypoint + EXPORT enviroments, and no lucky). Is a little nightmare to me config secrets to airflow in docker swarm :(. I want to avoid copy config and do it sed... I want to use enviroments!
Regards
The text was updated successfully, but these errors were encountered: