Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add example startup script #1146

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

Merged
merged 22 commits into from
Sep 29, 2017
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
c739b6c
Create openapi-appengine.yaml
buserp May 4, 2017
012ba83
Add comment to openapi.yaml about deploying on App Engine.
buserp May 9, 2017
f900dad
Add query string authentication option to Endpoints clients.
buserp Jun 15, 2017
9ee7e57
Merge branch 'master' of https://github.com/GoogleCloudPlatform/pytho…
buserp Jun 15, 2017
c38340f
Merge branch 'master' of https://github.com/GoogleCloudPlatform/pytho…
buserp Jun 15, 2017
9ba1f52
Merge branch 'master' of https://github.com/p-buse/python-docs-samples
buserp Jun 15, 2017
3756a2d
Fix bracket line spacing.
buserp Jun 15, 2017
00f842f
Merge remote-tracking branch 'upstream/master'
buserp Jul 24, 2017
5ae5482
Add openapi-appengine.yaml file for App Engine deployments.
buserp Jul 24, 2017
3cc284d
Remove alternative auth scheme.
buserp Jul 24, 2017
6d6602b
Change cloud.goog to appspot.com
buserp Aug 25, 2017
c2e94ae
Merge remote-tracking branch 'google/master'
buserp Aug 25, 2017
4619ff5
Add simple IAP app for GCE.
buserp Sep 6, 2017
0c41b20
Merge remote-tracking branch 'google/master'
buserp Sep 6, 2017
a6a9ac3
Add hostname to example app's response.
buserp Sep 7, 2017
aa5fa11
Update IAP example backend and requirements.
buserp Sep 12, 2017
197cfd1
Remove unnecessary '/healthz' endpoint, move constants after imports.
buserp Sep 13, 2017
67007f8
Merge branch 'master' into master
Sep 13, 2017
843fc64
Fix lint
Sep 13, 2017
20c2c7b
Add example startup scripts.
buserp Sep 28, 2017
397b78d
Merge branch 'master' of github.com:p-buse/python-docs-samples
buserp Sep 28, 2017
439a783
Merge remote-tracking branch 'google/master'
buserp Sep 28, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions 11 iap/example_startup_script.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apt-get -y install git
apt-get -y install virtualenv
git clone https://github.com/GoogleCloudPlatform/python-docs-samples
cd python-docs-samples/iap
virtualenv venv
source venv/bin/activate
pip install -r requirements.txt
cat example_gce_backend.py |
sed -e "s/YOUR_BACKEND_SERVICE_ID/$(gcloud compute backend-services describe my-backend-service --global --format="value(id)")/g" |
sed -e "s/YOUR_PROJECT_ID/$(gcloud config get-value account | tr -cd "[0-9]")/g" > real_backend.py
gunicorn real_backend:app -b 0.0.0.0:80
Morty Proxy This is a proxified and sanitized view of the page, visit original site.