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 Dockerfile to remain py2.7 compatible #218

Merged
merged 1 commit into from
Jan 23, 2020
Merged

Conversation

stephen-soltesz
Copy link
Contributor

@stephen-soltesz stephen-soltesz commented Jan 23, 2020

The previous base image no longer supports python2.7 natively.

This change updates the Dockerfile to remain py2.7 compatible for a little longer.


This change is Reviewable

Copy link
Contributor

@nkinkade nkinkade left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewable status: :shipit: complete! 1 of 1 LGTMs obtained (waiting on @nkinkade and @stephen-soltesz)


Dockerfile, line 15 at r1 (raw file):

RUN rm -f google-cloud-sdk-277.0.0-linux-x86_64.tar.gz
ENV PATH $PATH:/usr/local/google-cloud-sdk/bin
RUN gcloud components install app-engine-python app-engine-python-extras

Out of curiosity, how does gcloud know that it should be installing these components under /usr/local as opposed to /usr/lib? I notice that google-cloud-sdk-277.0.0-linux-x86_64.tar.gz does not contain a platform/google_appengine directory, so it be coming from this gcloud components install command. Does it know where to install things because gcloud inspects its own location in the filesystem?

Copy link
Contributor Author

@stephen-soltesz stephen-soltesz left a comment

Choose a reason for hiding this comment

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

Reviewable status: :shipit: complete! 1 of 1 LGTMs obtained (waiting on @nkinkade)


Dockerfile, line 15 at r1 (raw file):

Previously, nkinkade wrote…

Out of curiosity, how does gcloud know that it should be installing these components under /usr/local as opposed to /usr/lib? I notice that google-cloud-sdk-277.0.0-linux-x86_64.tar.gz does not contain a platform/google_appengine directory, so it be coming from this gcloud components install command. Does it know where to install things because gcloud inspects its own location in the filesystem?

That's right -- gcloud looks up its own path and the components install writes the new files to /usr/local/goole-cloud-sdk/...

@stephen-soltesz stephen-soltesz merged commit 3ef5715 into master Jan 23, 2020
@pboothe
Copy link
Contributor

pboothe commented Jan 24, 2020

Fixes #217 (kind of, but still leaves the 2.7 timebomb in place)

@stephen-soltesz stephen-soltesz deleted the sandbox-soltesz branch August 12, 2022 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants