Skip to content

Instantly share code, notes, and snippets.

@Geremie
Last active May 25, 2022 11:14
Show Gist options
  • Save Geremie/e58afb65bd30754d6fba7bc228aafaaa to your computer and use it in GitHub Desktop.
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)
# 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