我正在尝试在 gcr.io 容器中安装私有 python 库,即使在 yaml 文件中为 gcloud 和 --network=cloudbuild 设置了 configure-docker 并收到错误消息。
运行 pip install -e git+ https://source.developers.google.com/p/project_name/r/github_domain_repository_name#egg=package_path
steps:
- name: 'gcr.io/cloud-builders/gcloud'
args: ['auth', 'configure-docker']
- name: 'gcr.io/cloud-builders/docker'
args: ['build', '--network=cloudbuild', '-t', 'gcr.io/project-${_ENVIRONMENT}/cloud_run-pubsub_example', './cloud-run/file_upserter/']