-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Memorystore: Add Dockerfile for Cloud Run deployment #4191
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
Conversation
FYI, you can write an end 2 end test with Cloud Run (example). |
Added an e2e test for Cloud Run, let me know what you think |
@ericschmidtatwork FYI I think if you join the googlecloudplatform org, the test will automatically run. |
The test failed locally with the following:
|
It looks like the |
The test failed with:
I enabled the API. |
It failed with:
|
Do you need a specific version of gcloud sdk? If so you may need to update the version number here. |
If you edit the Dockerfile, the presubmit will run full builds (not this sample, it will run all the tests). To run the test locally, you can:
This will run the test from building the Docker image, so you can test the changes in Dockerfile too. |
@tmatsuo Thanks for the guidance. Is there any reason I shouldn't just update gcloud to the latest version? This test needs at least 299.0.0 |
@ericschmidtatwork Yeah, updating gcloud SDK to the latest sounds fine. |
Updated gcloud SDK in the Dockerfile to 304.0.0, and the test is passing locally. |
Python 3.8 build passed and the log contains:
The failures in py-3.6 and py-3.7 builds are flakes and I don't think it's relevant to the Dockerfile change. Merging this now. |
I'm working on a tutorial for connecting to Memorystore from Cloud Run via Serverless VPC Access. The existing sample app still works, we just need a Dockerfile to deploy it. Also adding a
.gcloudignore
.