Download - Docker on Google App Engine
![Page 1: Docker on Google App Engine](https://reader034.vdocument.in/reader034/viewer/2022042613/546f1b08b4af9fff0b8b45dc/html5/thumbnails/1.jpg)
Docker on Google App Engine
Ekaterina VolkovaSoftware Engineer
Bridging the worlds of application hosting and developer tooling
![Page 2: Docker on Google App Engine](https://reader034.vdocument.in/reader034/viewer/2022042613/546f1b08b4af9fff0b8b45dc/html5/thumbnails/2.jpg)
Turn-key deployment Automatic health checking, monitoring, logging, and scaling
A complete local development environment
Deep integration with core services
Google App Engine
![Page 3: Docker on Google App Engine](https://reader034.vdocument.in/reader034/viewer/2022042613/546f1b08b4af9fff0b8b45dc/html5/thumbnails/3.jpg)
+ = ?
![Page 4: Docker on Google App Engine](https://reader034.vdocument.in/reader034/viewer/2022042613/546f1b08b4af9fff0b8b45dc/html5/thumbnails/4.jpg)
+ = Managed VMs
![Page 5: Docker on Google App Engine](https://reader034.vdocument.in/reader034/viewer/2022042613/546f1b08b4af9fff0b8b45dc/html5/thumbnails/5.jpg)
minutes!
![Page 6: Docker on Google App Engine](https://reader034.vdocument.in/reader034/viewer/2022042613/546f1b08b4af9fff0b8b45dc/html5/thumbnails/6.jpg)
Deploy a more complex app that really does something
1
2
Deploy a simple app, look at the tools App Engine provides
In this talk, we will
Look at Local Development experience3
![Page 7: Docker on Google App Engine](https://reader034.vdocument.in/reader034/viewer/2022042613/546f1b08b4af9fff0b8b45dc/html5/thumbnails/7.jpg)
Google Compute Engine Instance
Dockerfile
app.yaml
All you need
Google App Engine dockerd
Docker Container
Your app
![Page 8: Docker on Google App Engine](https://reader034.vdocument.in/reader034/viewer/2022042613/546f1b08b4af9fff0b8b45dc/html5/thumbnails/8.jpg)
Dockerfile
FROM debian:wheezyENV DEBIAN_FRONTEND noninteractive
RUN apt-get -q update ; apt-get -y -q --no-install-recommends install python2.7 python-pip
RUN pip install Flask
EXPOSE 8080ADD . /app
ENTRYPOINT ["/usr/bin/python2.7", "/app/app.py"]
![Page 9: Docker on Google App Engine](https://reader034.vdocument.in/reader034/viewer/2022042613/546f1b08b4af9fff0b8b45dc/html5/thumbnails/9.jpg)
app.yaml
application: gloomy-vms-prod
module: python-flask
version: hello-world
runtime: custom
api_version: 1
threadsafe: on
vm: true
manual_scaling:
instances: 1
handlers:
- url: /.*
script: main.app
![Page 10: Docker on Google App Engine](https://reader034.vdocument.in/reader034/viewer/2022042613/546f1b08b4af9fff0b8b45dc/html5/thumbnails/10.jpg)
gcloud app deploy <path/to/your/context>
![Page 11: Docker on Google App Engine](https://reader034.vdocument.in/reader034/viewer/2022042613/546f1b08b4af9fff0b8b45dc/html5/thumbnails/11.jpg)
Demo
![Page 12: Docker on Google App Engine](https://reader034.vdocument.in/reader034/viewer/2022042613/546f1b08b4af9fff0b8b45dc/html5/thumbnails/12.jpg)
Behind the scenes
docker build
using google/docker-registry
container
Google Compute Engine instance
your laptop
docker run
gcloud deploy startupdate
using google/docker-registry
container
privateGoogle Cloud
Storagebucket
Google App Engine
Your awesome docker image
Your awesome docker image
docker container
docker push
docker pull
![Page 13: Docker on Google App Engine](https://reader034.vdocument.in/reader034/viewer/2022042613/546f1b08b4af9fff0b8b45dc/html5/thumbnails/13.jpg)
Let’s try something more real!
https://index.docker.io/u/google/mysql/
Dockerfile
FROM google/mysql
![Page 14: Docker on Google App Engine](https://reader034.vdocument.in/reader034/viewer/2022042613/546f1b08b4af9fff0b8b45dc/html5/thumbnails/14.jpg)
Demo
![Page 15: Docker on Google App Engine](https://reader034.vdocument.in/reader034/viewer/2022042613/546f1b08b4af9fff0b8b45dc/html5/thumbnails/15.jpg)
App Engine APIs
Storage: Cloud Datastore, Cloud SQL, Cloud Storage
Memcache
Task Queue
Cloud Endpoints
Find more! https://cloud.google.com/products/app-engine/
![Page 16: Docker on Google App Engine](https://reader034.vdocument.in/reader034/viewer/2022042613/546f1b08b4af9fff0b8b45dc/html5/thumbnails/16.jpg)
App Engine APIs in your Docker container!
Dockerfile
FROM google/appengine-python27
app.yaml
runtime: <python27|java|go>
![Page 17: Docker on Google App Engine](https://reader034.vdocument.in/reader034/viewer/2022042613/546f1b08b4af9fff0b8b45dc/html5/thumbnails/17.jpg)
App Engine Local Development
gcloud app run <path/to/your/context>
![Page 18: Docker on Google App Engine](https://reader034.vdocument.in/reader034/viewer/2022042613/546f1b08b4af9fff0b8b45dc/html5/thumbnails/18.jpg)
Demo
![Page 19: Docker on Google App Engine](https://reader034.vdocument.in/reader034/viewer/2022042613/546f1b08b4af9fff0b8b45dc/html5/thumbnails/19.jpg)
App Engine for Docker
Simple to manage
Private Registry Bucket
APIs and SDK
Loadbalancing
Autoscaling is coming!
Docker for App Engine
Use any library
Run any code
Transparency
New Runtimes, build your own!
registry.hub.docker.com
+
![Page 20: Docker on Google App Engine](https://reader034.vdocument.in/reader034/viewer/2022042613/546f1b08b4af9fff0b8b45dc/html5/thumbnails/20.jpg)
We are in limited preview!developers.google.com/cloud/managed-vms