From 1cf792d9b10eb260ed51167ab8f47557bb3fa5c8 Mon Sep 17 00:00:00 2001 From: Oliver Chang Date: Tue, 28 Mar 2017 14:04:34 -0700 Subject: [PATCH] [infra] Fix helper base image project. --- infra/helper.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/infra/helper.py b/infra/helper.py index 8345776e0..79c81086a 100755 --- a/infra/helper.py +++ b/infra/helper.py @@ -134,8 +134,10 @@ def _build_image(image_name): """Build image.""" if _is_base_image(image_name): + image_project = 'oss-fuzz-base' dockerfile_dir = os.path.join('infra', 'base-images', image_name) else: + image_project = 'oss-fuzz' if not _check_project_exists(image_name): return False @@ -145,7 +147,7 @@ def _build_image(image_name): build_args = [] if not GLOBAL_ARGS.nopull: build_args += ['--pull'] - build_args += ['-t', 'gcr.io/oss-fuzz/%s' % image_name, dockerfile_dir ] + build_args += ['-t', 'gcr.io/%s/%s' % (image_name, image_project), dockerfile_dir ] command = [ 'docker', 'build' ] + build_args print('Running:', _get_command_string(command))