docker on google app engine

Post on 21-Nov-2014

145 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

DESCRIPTION

 

TRANSCRIPT

Docker on Google App Engine

Ekaterina VolkovaSoftware Engineer

Bridging the worlds of application hosting and developer tooling

Turn-key deployment Automatic health checking, monitoring, logging, and scaling

A complete local development environment

Deep integration with core services

Google App Engine

+ = ?

+ = Managed VMs

minutes!

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

Google Compute Engine Instance

Dockerfile

app.yaml

All you need

Google App Engine dockerd

Docker Container

Your app

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"]

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

gcloud app deploy <path/to/your/context>

Demo

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

Let’s try something more real!

https://index.docker.io/u/google/mysql/

Dockerfile

FROM google/mysql

Demo

App Engine APIs

Storage: Cloud Datastore, Cloud SQL, Cloud Storage

Memcache

Task Queue

Cloud Endpoints

Find more! https://cloud.google.com/products/app-engine/

App Engine APIs in your Docker container!

Dockerfile

FROM google/appengine-python27

app.yaml

runtime: <python27|java|go>

App Engine Local Development

gcloud app run <path/to/your/context>

Demo

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

+

We are in limited preview!developers.google.com/cloud/managed-vms

top related