如何让Supervisor使用Gcloud环境变量?

时间:2018-08-22 22:15:15

标签: python gcloud airflow supervisord gsutil

这些是gcloud在安装后在~/.bashrc中设置的行。我可以从外壳程序本身使用它,但是从超级用户运行它时,我不知道如何将它们转换为环境变量。

我该如何做才能通过主管使用gloud(尤其是gsutil云存储)。我正在使用主管运行气流,这将自动执行Google云存储更新。

# The next line updates PATH for the Google Cloud SDK.
if [ -f '/home/name/google-cloud-sdk/path.bash.inc' ]; then source '/home/name/google-cloud-sdk/path.bash.inc'; fi

# The next line enables shell command completion for gcloud.
if [ -f '/home/name/google-cloud-sdk/completion.bash.inc' ]; then source '/home/name/google-cloud-sdk/completion.bash.inc'; fi

0 个答案:

没有答案