Skip to content

Commit

Permalink
Register gcr.io helper for docker before the build
Browse files Browse the repository at this point in the history
This allows build dependencies to be sourced from gcr.io registries that
require authentication.
  • Loading branch information
roman-yepishev committed Mar 2, 2020
1 parent f373f53 commit 40e5e5f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scenarios/kubernetes_build.py
Expand Up @@ -100,6 +100,10 @@ def main(args):
print >>sys.stderr, 'build already exists, exit'
sys.exit(0)

# Configure docker client for gcr.io authentication to allow communication
# with non-public registries.
check_no_stdout('gcloud', 'auth', 'configure-docker')

env = {
# Skip gcloud update checking; do we still need this?
'CLOUDSDK_COMPONENT_MANAGER_DISABLE_UPDATE_CHECK': 'true',
Expand Down

0 comments on commit 40e5e5f

Please sign in to comment.