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

fix(components): Update components/local/base/Dockerfile to use Python3 #5047

Merged
merged 1 commit into from
Jan 28, 2021

Conversation

chensun
Copy link
Member

@chensun chensun commented Jan 28, 2021

Description of your changes:
Components don't build due to Python2.7 being used: https://pantheon.corp.google.com/cloud-build/builds/b34906af-0485-43be-b994-3fdfab6a0f6b;step=29?project=ml-pipeline-test

Related to #5007

Checklist:

RUN pip install --no-cache-dir pandas==0.24.2
RUN pip install --no-cache-dir scikit-learn==0.21.2
RUN pip install --no-cache-dir scipy==1.4.1
RUN pip install --no-cache-dir tensorflow==2.2.0

Copy link
Member Author

Choose a reason for hiding this comment

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

I picked the same versions as found in [1], so that they're known to be compatible with each other.

[1] https://github.com/kubeflow/pipelines/blob/76246f47587c2ddd3105f269009881c82d6b751c/backend/src/apiserver/visualization/requirements.txt


ADD build /ml

ENV PATH $PATH:/tools/node/bin:/tools/google-cloud-sdk/bin

Choose a reason for hiding this comment

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

Just to be sure, gcloud is not used in these components, right?

Copy link
Member Author

Choose a reason for hiding this comment

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

Right, I checked the code under these locations:

Didn't see any usage of cloud sdk binary.
And I didn't see any usage of google-api-python-client as well, thus removed RUN pip install google-api-python-client==1.6.2

@numerology
Copy link

/lgtm
/approve
/hold

Thanks Chen!
Just want to double check whether it's safe to remove gcloud. Feel free to unhold if it's the case.

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: chensun, numerology

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

1 similar comment
@google-oss-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: chensun, numerology

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

@chensun
Copy link
Member Author

chensun commented Jan 28, 2021

/unhold

Thanks for review, Jiaxiao. Submitting.

@google-oss-robot google-oss-robot merged commit d14f64e into kubeflow:master Jan 28, 2021
@chensun chensun deleted the fix-local-component branch January 28, 2021 22:12
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.

6 participants