我试图在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/']