53
DRUPAL ON DOCKER April 2 nd , 2016 • Stanford Drupal Camp John Bickar Web Developer, Stanford Web Services

April 2nd, 2016 • Stanford Drupal Camp DRUPAL ON DOCKER · DOWNTIME (O outages) UPTIME 1 type: HTTP, host: adminguide.stanford.edu sec Oct 18th Oct 19th Ott 20th Oct 21st Oct 22nd

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: April 2nd, 2016 • Stanford Drupal Camp DRUPAL ON DOCKER · DOWNTIME (O outages) UPTIME 1 type: HTTP, host: adminguide.stanford.edu sec Oct 18th Oct 19th Ott 20th Oct 21st Oct 22nd

DRUPAL ON DOCKERApril 2nd, 2016 • Stanford Drupal Camp

John Bickar Web Developer, Stanford Web Services

Page 2: April 2nd, 2016 • Stanford Drupal Camp DRUPAL ON DOCKER · DOWNTIME (O outages) UPTIME 1 type: HTTP, host: adminguide.stanford.edu sec Oct 18th Oct 19th Ott 20th Oct 21st Oct 22nd

Infrastructure

Page 3: April 2nd, 2016 • Stanford Drupal Camp DRUPAL ON DOCKER · DOWNTIME (O outages) UPTIME 1 type: HTTP, host: adminguide.stanford.edu sec Oct 18th Oct 19th Ott 20th Oct 21st Oct 22nd

Cardinal at Work

https://cardinalatwork.stanford.edu

Page 4: April 2nd, 2016 • Stanford Drupal Camp DRUPAL ON DOCKER · DOWNTIME (O outages) UPTIME 1 type: HTTP, host: adminguide.stanford.edu sec Oct 18th Oct 19th Ott 20th Oct 21st Oct 22nd
Page 5: April 2nd, 2016 • Stanford Drupal Camp DRUPAL ON DOCKER · DOWNTIME (O outages) UPTIME 1 type: HTTP, host: adminguide.stanford.edu sec Oct 18th Oct 19th Ott 20th Oct 21st Oct 22nd
Page 6: April 2nd, 2016 • Stanford Drupal Camp DRUPAL ON DOCKER · DOWNTIME (O outages) UPTIME 1 type: HTTP, host: adminguide.stanford.edu sec Oct 18th Oct 19th Ott 20th Oct 21st Oct 22nd

Cardinal at Work

https://cardinalatwork.stanford.edu

Page 7: April 2nd, 2016 • Stanford Drupal Camp DRUPAL ON DOCKER · DOWNTIME (O outages) UPTIME 1 type: HTTP, host: adminguide.stanford.edu sec Oct 18th Oct 19th Ott 20th Oct 21st Oct 22nd
Page 8: April 2nd, 2016 • Stanford Drupal Camp DRUPAL ON DOCKER · DOWNTIME (O outages) UPTIME 1 type: HTTP, host: adminguide.stanford.edu sec Oct 18th Oct 19th Ott 20th Oct 21st Oct 22nd

Users

Page 9: April 2nd, 2016 • Stanford Drupal Camp DRUPAL ON DOCKER · DOWNTIME (O outages) UPTIME 1 type: HTTP, host: adminguide.stanford.edu sec Oct 18th Oct 19th Ott 20th Oct 21st Oct 22nd

Don’t

Page 10: April 2nd, 2016 • Stanford Drupal Camp DRUPAL ON DOCKER · DOWNTIME (O outages) UPTIME 1 type: HTTP, host: adminguide.stanford.edu sec Oct 18th Oct 19th Ott 20th Oct 21st Oct 22nd

Care

Page 11: April 2nd, 2016 • Stanford Drupal Camp DRUPAL ON DOCKER · DOWNTIME (O outages) UPTIME 1 type: HTTP, host: adminguide.stanford.edu sec Oct 18th Oct 19th Ott 20th Oct 21st Oct 22nd

About

Page 12: April 2nd, 2016 • Stanford Drupal Camp DRUPAL ON DOCKER · DOWNTIME (O outages) UPTIME 1 type: HTTP, host: adminguide.stanford.edu sec Oct 18th Oct 19th Ott 20th Oct 21st Oct 22nd

Your

Page 13: April 2nd, 2016 • Stanford Drupal Camp DRUPAL ON DOCKER · DOWNTIME (O outages) UPTIME 1 type: HTTP, host: adminguide.stanford.edu sec Oct 18th Oct 19th Ott 20th Oct 21st Oct 22nd

Infrastructure

Page 14: April 2nd, 2016 • Stanford Drupal Camp DRUPAL ON DOCKER · DOWNTIME (O outages) UPTIME 1 type: HTTP, host: adminguide.stanford.edu sec Oct 18th Oct 19th Ott 20th Oct 21st Oct 22nd

Until they do

Page 15: April 2nd, 2016 • Stanford Drupal Camp DRUPAL ON DOCKER · DOWNTIME (O outages) UPTIME 1 type: HTTP, host: adminguide.stanford.edu sec Oct 18th Oct 19th Ott 20th Oct 21st Oct 22nd
Page 16: April 2nd, 2016 • Stanford Drupal Camp DRUPAL ON DOCKER · DOWNTIME (O outages) UPTIME 1 type: HTTP, host: adminguide.stanford.edu sec Oct 18th Oct 19th Ott 20th Oct 21st Oct 22nd
Page 17: April 2nd, 2016 • Stanford Drupal Camp DRUPAL ON DOCKER · DOWNTIME (O outages) UPTIME 1 type: HTTP, host: adminguide.stanford.edu sec Oct 18th Oct 19th Ott 20th Oct 21st Oct 22nd

WHAT IS DOCKER?

Page 18: April 2nd, 2016 • Stanford Drupal Camp DRUPAL ON DOCKER · DOWNTIME (O outages) UPTIME 1 type: HTTP, host: adminguide.stanford.edu sec Oct 18th Oct 19th Ott 20th Oct 21st Oct 22nd
Page 19: April 2nd, 2016 • Stanford Drupal Camp DRUPAL ON DOCKER · DOWNTIME (O outages) UPTIME 1 type: HTTP, host: adminguide.stanford.edu sec Oct 18th Oct 19th Ott 20th Oct 21st Oct 22nd

BACKGROUND

Page 20: April 2nd, 2016 • Stanford Drupal Camp DRUPAL ON DOCKER · DOWNTIME (O outages) UPTIME 1 type: HTTP, host: adminguide.stanford.edu sec Oct 18th Oct 19th Ott 20th Oct 21st Oct 22nd

Hardware-based Web Server(s)

Page 21: April 2nd, 2016 • Stanford Drupal Camp DRUPAL ON DOCKER · DOWNTIME (O outages) UPTIME 1 type: HTTP, host: adminguide.stanford.edu sec Oct 18th Oct 19th Ott 20th Oct 21st Oct 22nd
Page 22: April 2nd, 2016 • Stanford Drupal Camp DRUPAL ON DOCKER · DOWNTIME (O outages) UPTIME 1 type: HTTP, host: adminguide.stanford.edu sec Oct 18th Oct 19th Ott 20th Oct 21st Oct 22nd

Summer 2014: Drupal on AWS Elastic Beanstalk

Page 23: April 2nd, 2016 • Stanford Drupal Camp DRUPAL ON DOCKER · DOWNTIME (O outages) UPTIME 1 type: HTTP, host: adminguide.stanford.edu sec Oct 18th Oct 19th Ott 20th Oct 21st Oct 22nd

FALL 2015: ANCHORAGE

Page 24: April 2nd, 2016 • Stanford Drupal Camp DRUPAL ON DOCKER · DOWNTIME (O outages) UPTIME 1 type: HTTP, host: adminguide.stanford.edu sec Oct 18th Oct 19th Ott 20th Oct 21st Oct 22nd

WHY DOCKER?

Page 25: April 2nd, 2016 • Stanford Drupal Camp DRUPAL ON DOCKER · DOWNTIME (O outages) UPTIME 1 type: HTTP, host: adminguide.stanford.edu sec Oct 18th Oct 19th Ott 20th Oct 21st Oct 22nd

Ooh…shiny

Photo courtesy of Flickr user puzzler4879

Page 26: April 2nd, 2016 • Stanford Drupal Camp DRUPAL ON DOCKER · DOWNTIME (O outages) UPTIME 1 type: HTTP, host: adminguide.stanford.edu sec Oct 18th Oct 19th Ott 20th Oct 21st Oct 22nd

HOW IT WORKS

Page 27: April 2nd, 2016 • Stanford Drupal Camp DRUPAL ON DOCKER · DOWNTIME (O outages) UPTIME 1 type: HTTP, host: adminguide.stanford.edu sec Oct 18th Oct 19th Ott 20th Oct 21st Oct 22nd

RUNNING THE WEB SERVER

Page 28: April 2nd, 2016 • Stanford Drupal Camp DRUPAL ON DOCKER · DOWNTIME (O outages) UPTIME 1 type: HTTP, host: adminguide.stanford.edu sec Oct 18th Oct 19th Ott 20th Oct 21st Oct 22nd

ComponentsElasticLoadBalancer(ELB)

SimpleStorageService(S3)

MySQLDatabase(onAmazonRDS)

ElasticComputeCloud(EC2)instancesrunning CoreOSCoreOS includes:

AutomatedOSupdatesandrestarts(canschedule)

etcd – key/valuemetadatastorage

fleetctl – supports deploying (Docker)containersacrossaclusterofCoreOS machines

Page 29: April 2nd, 2016 • Stanford Drupal Camp DRUPAL ON DOCKER · DOWNTIME (O outages) UPTIME 1 type: HTTP, host: adminguide.stanford.edu sec Oct 18th Oct 19th Ott 20th Oct 21st Oct 22nd

One Docker container

Page 30: April 2nd, 2016 • Stanford Drupal Camp DRUPAL ON DOCKER · DOWNTIME (O outages) UPTIME 1 type: HTTP, host: adminguide.stanford.edu sec Oct 18th Oct 19th Ott 20th Oct 21st Oct 22nd
Page 31: April 2nd, 2016 • Stanford Drupal Camp DRUPAL ON DOCKER · DOWNTIME (O outages) UPTIME 1 type: HTTP, host: adminguide.stanford.edu sec Oct 18th Oct 19th Ott 20th Oct 21st Oct 22nd

DOCKER IMAGE HIERARCHY

Page 32: April 2nd, 2016 • Stanford Drupal Camp DRUPAL ON DOCKER · DOWNTIME (O outages) UPTIME 1 type: HTTP, host: adminguide.stanford.edu sec Oct 18th Oct 19th Ott 20th Oct 21st Oct 22nd
Page 33: April 2nd, 2016 • Stanford Drupal Camp DRUPAL ON DOCKER · DOWNTIME (O outages) UPTIME 1 type: HTTP, host: adminguide.stanford.edu sec Oct 18th Oct 19th Ott 20th Oct 21st Oct 22nd

So What?

Page 34: April 2nd, 2016 • Stanford Drupal Camp DRUPAL ON DOCKER · DOWNTIME (O outages) UPTIME 1 type: HTTP, host: adminguide.stanford.edu sec Oct 18th Oct 19th Ott 20th Oct 21st Oct 22nd
Page 35: April 2nd, 2016 • Stanford Drupal Camp DRUPAL ON DOCKER · DOWNTIME (O outages) UPTIME 1 type: HTTP, host: adminguide.stanford.edu sec Oct 18th Oct 19th Ott 20th Oct 21st Oct 22nd

So What?

Page 36: April 2nd, 2016 • Stanford Drupal Camp DRUPAL ON DOCKER · DOWNTIME (O outages) UPTIME 1 type: HTTP, host: adminguide.stanford.edu sec Oct 18th Oct 19th Ott 20th Oct 21st Oct 22nd
Page 37: April 2nd, 2016 • Stanford Drupal Camp DRUPAL ON DOCKER · DOWNTIME (O outages) UPTIME 1 type: HTTP, host: adminguide.stanford.edu sec Oct 18th Oct 19th Ott 20th Oct 21st Oct 22nd

(Yeah, right.)

Page 38: April 2nd, 2016 • Stanford Drupal Camp DRUPAL ON DOCKER · DOWNTIME (O outages) UPTIME 1 type: HTTP, host: adminguide.stanford.edu sec Oct 18th Oct 19th Ott 20th Oct 21st Oct 22nd
Page 39: April 2nd, 2016 • Stanford Drupal Camp DRUPAL ON DOCKER · DOWNTIME (O outages) UPTIME 1 type: HTTP, host: adminguide.stanford.edu sec Oct 18th Oct 19th Ott 20th Oct 21st Oct 22nd

BUILDING THE IMAGES

Page 40: April 2nd, 2016 • Stanford Drupal Camp DRUPAL ON DOCKER · DOWNTIME (O outages) UPTIME 1 type: HTTP, host: adminguide.stanford.edu sec Oct 18th Oct 19th Ott 20th Oct 21st Oct 22nd
Page 41: April 2nd, 2016 • Stanford Drupal Camp DRUPAL ON DOCKER · DOWNTIME (O outages) UPTIME 1 type: HTTP, host: adminguide.stanford.edu sec Oct 18th Oct 19th Ott 20th Oct 21st Oct 22nd
Page 42: April 2nd, 2016 • Stanford Drupal Camp DRUPAL ON DOCKER · DOWNTIME (O outages) UPTIME 1 type: HTTP, host: adminguide.stanford.edu sec Oct 18th Oct 19th Ott 20th Oct 21st Oct 22nd
Page 43: April 2nd, 2016 • Stanford Drupal Camp DRUPAL ON DOCKER · DOWNTIME (O outages) UPTIME 1 type: HTTP, host: adminguide.stanford.edu sec Oct 18th Oct 19th Ott 20th Oct 21st Oct 22nd
Page 44: April 2nd, 2016 • Stanford Drupal Camp DRUPAL ON DOCKER · DOWNTIME (O outages) UPTIME 1 type: HTTP, host: adminguide.stanford.edu sec Oct 18th Oct 19th Ott 20th Oct 21st Oct 22nd
Page 45: April 2nd, 2016 • Stanford Drupal Camp DRUPAL ON DOCKER · DOWNTIME (O outages) UPTIME 1 type: HTTP, host: adminguide.stanford.edu sec Oct 18th Oct 19th Ott 20th Oct 21st Oct 22nd
Page 46: April 2nd, 2016 • Stanford Drupal Camp DRUPAL ON DOCKER · DOWNTIME (O outages) UPTIME 1 type: HTTP, host: adminguide.stanford.edu sec Oct 18th Oct 19th Ott 20th Oct 21st Oct 22nd
Page 47: April 2nd, 2016 • Stanford Drupal Camp DRUPAL ON DOCKER · DOWNTIME (O outages) UPTIME 1 type: HTTP, host: adminguide.stanford.edu sec Oct 18th Oct 19th Ott 20th Oct 21st Oct 22nd
Page 48: April 2nd, 2016 • Stanford Drupal Camp DRUPAL ON DOCKER · DOWNTIME (O outages) UPTIME 1 type: HTTP, host: adminguide.stanford.edu sec Oct 18th Oct 19th Ott 20th Oct 21st Oct 22nd
Page 49: April 2nd, 2016 • Stanford Drupal Camp DRUPAL ON DOCKER · DOWNTIME (O outages) UPTIME 1 type: HTTP, host: adminguide.stanford.edu sec Oct 18th Oct 19th Ott 20th Oct 21st Oct 22nd
Page 50: April 2nd, 2016 • Stanford Drupal Camp DRUPAL ON DOCKER · DOWNTIME (O outages) UPTIME 1 type: HTTP, host: adminguide.stanford.edu sec Oct 18th Oct 19th Ott 20th Oct 21st Oct 22nd

SUPPORTING SERVICES

Page 51: April 2nd, 2016 • Stanford Drupal Camp DRUPAL ON DOCKER · DOWNTIME (O outages) UPTIME 1 type: HTTP, host: adminguide.stanford.edu sec Oct 18th Oct 19th Ott 20th Oct 21st Oct 22nd
Page 52: April 2nd, 2016 • Stanford Drupal Camp DRUPAL ON DOCKER · DOWNTIME (O outages) UPTIME 1 type: HTTP, host: adminguide.stanford.edu sec Oct 18th Oct 19th Ott 20th Oct 21st Oct 22nd

LIVE DEMO TIME!

Page 53: April 2nd, 2016 • Stanford Drupal Camp DRUPAL ON DOCKER · DOWNTIME (O outages) UPTIME 1 type: HTTP, host: adminguide.stanford.edu sec Oct 18th Oct 19th Ott 20th Oct 21st Oct 22nd