Skip to content

Commit 9a4114d

Browse files
author
Jon Wayne Parrott
committed
Moving mvm samples to runtime: python
1 parent 8387789 commit 9a4114d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+97
-436
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
Django==1.9.2
22
mysqlclient==1.3.7
3-
wheel==0.28.0
3+
wheel==0.29.0
44
gunicorn==19.4.5

managed_vms/analytics/.dockerignore

Lines changed: 0 additions & 8 deletions
This file was deleted.

managed_vms/analytics/Dockerfile

Lines changed: 0 additions & 15 deletions
This file was deleted.

managed_vms/analytics/app.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
runtime: custom
1+
runtime: python
22
vm: true
3+
entrypoint: gunicorn -b :$PORT main:app
4+
5+
runtime_config:
6+
python_version: 3
37

48
#[START env]
59
env_variables:

managed_vms/analytics/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,6 @@ def track_example():
5959

6060
if __name__ == '__main__':
6161
# This is used when running locally. Gunicorn is used to run the
62-
# application on Google App Engine. See CMD in Dockerfile.
62+
# application on Google App Engine. See entrypoint in app.yaml.
6363
app.run(host='127.0.0.1', port=8080, debug=True)
6464
# [END app]

managed_vms/cloudsql/.dockerignore

Lines changed: 0 additions & 8 deletions
This file was deleted.

managed_vms/cloudsql/Dockerfile

Lines changed: 0 additions & 15 deletions
This file was deleted.

managed_vms/cloudsql/app.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
runtime: custom
1+
runtime: python
22
vm: true
3+
entrypoint: gunicorn -b :$PORT main:app
4+
5+
runtime_config:
6+
python_version: 3
37

48
#[START env]
59
env_variables:

managed_vms/cloudsql/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,5 +81,5 @@ def index():
8181

8282
if __name__ == '__main__':
8383
# This is used when running locally. Gunicorn is used to run the
84-
# application on Google App Engine. See CMD in Dockerfile.
84+
# application on Google App Engine. See entrypoint in app.yaml.
8585
app.run(host='127.0.0.1', port=8080, debug=True)

managed_vms/datastore/.dockerignore

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)