Last active
May 25, 2022 11:14
-
-
Save Geremie/e58afb65bd30754d6fba7bc228aafaaa to your computer and use it in GitHub Desktop.
If you are using Python and Google Cloud Platform, this will Simplify Life for you (Part 2)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Get the dags folder | |
| dags_folder=$(gcloud composer environments describe <your_environment_name> \ | |
| --project <your_gcp_project> --location <your_location_name> --format="get(config.dagGcsPrefix)") | |
| # Copy the pip.conf file to the config/pip folder | |
| config_folder=$(echo $dags_folder | cut -d / -f-3)/config/pip/ | |
| gsutil cp pip.conf $config_folder |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment