Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Container builder default gcr #1806

Merged
merged 6 commits into from
Aug 14, 2019
Merged

Container builder default gcr #1806

merged 6 commits into from
Aug 14, 2019

Conversation

gaoning777
Copy link
Contributor

@gaoning777 gaoning777 commented Aug 10, 2019

This change is Reviewable

@gaoning777 gaoning777 changed the title [WIP] container builder default gcr Container builder default gcr Aug 10, 2019
@gaoning777
Copy link
Contributor Author

fixes #1775

@gaoning777
Copy link
Contributor Author

/test kubeflow-pipeline-sample-test

4 similar comments
@gaoning777
Copy link
Contributor Author

/test kubeflow-pipeline-sample-test

@gaoning777
Copy link
Contributor Author

/test kubeflow-pipeline-sample-test

@gaoning777
Copy link
Contributor Author

/test kubeflow-pipeline-sample-test

@gaoning777
Copy link
Contributor Author

/test kubeflow-pipeline-sample-test

Copy link
Contributor

@hongye-sun hongye-sun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@gaoning777
Copy link
Contributor Author

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: gaoning777

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@gaoning777 gaoning777 merged commit 613086e into kubeflow:master Aug 14, 2019
@gaoning777 gaoning777 deleted the container-builder-default-gcr branch August 14, 2019 23:21
"""
Args:
gcs_staging (str): GCS bucket/blob that can store temporary build files,
default is gs://PROJECT_ID/kfp_container_build_staging.
gcr_image_tag (str): GCR image tag where the target image is pushed
Copy link
Contributor

@Ark-kun Ark-kun Aug 19, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The gcr_image_tag parameter name might be confusing:

  1. I'm not sure it's GCR-specific
  2. Docker already uses the term tag for a different concept

What do you think about naming it default_image_name?

P.S. Docker calls them "image repo"s

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it currently only support gcr, thus naming it this way.
I'm OK with renaming it once we support other registries.

else:
nb_id = self._get_instance_id()
except:
raise ValueError('Please provide the gcr_image_tag.')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

... when running outside of the KFP cluster.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It currently works for ai platform notebook and kf notebook where the project id is available. Otherwise, users need to provide one.

@Ark-kun
Copy link
Contributor

Ark-kun commented Aug 19, 2019

The tests seems to be failing when developing locally:

  File "/usr/local/google/home/avolkov/_projects/pipelines_worktree3/sdk/python/tests/compiler/container_builder_test.py", line 42, in test_wrap_dir_in_tarball
    builder = ContainerBuilder(gcs_staging=GCS_BASE, namespace='')
  File "/usr/local/google/home/avolkov/_projects/pipelines_worktree3/sdk/python/kfp/compiler/_container_builder.py", line 67, in __init__
    raise ValueError('Please provide the gcr_image_tag.')
ValueError: Please provide the gcr_image_tag.

@gaoning777 Can you please look into it?

@gaoning777
Copy link
Contributor Author

addressing the comments here: #1892

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants