![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](https://reader034.vdocuments.site/reader034/viewer/2022042218/5ec388ed4d1ca6515f5cfdd8/html5/thumbnails/1.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022042218/5ec388ed4d1ca6515f5cfdd8/html5/thumbnails/2.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022042218/5ec388ed4d1ca6515f5cfdd8/html5/thumbnails/3.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022042218/5ec388ed4d1ca6515f5cfdd8/html5/thumbnails/4.jpg)
![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](https://reader034.vdocuments.site/reader034/viewer/2022042218/5ec388ed4d1ca6515f5cfdd8/html5/thumbnails/5.jpg)
![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](https://reader034.vdocuments.site/reader034/viewer/2022042218/5ec388ed4d1ca6515f5cfdd8/html5/thumbnails/6.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022042218/5ec388ed4d1ca6515f5cfdd8/html5/thumbnails/7.jpg)
![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](https://reader034.vdocuments.site/reader034/viewer/2022042218/5ec388ed4d1ca6515f5cfdd8/html5/thumbnails/8.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022042218/5ec388ed4d1ca6515f5cfdd8/html5/thumbnails/9.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022042218/5ec388ed4d1ca6515f5cfdd8/html5/thumbnails/10.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022042218/5ec388ed4d1ca6515f5cfdd8/html5/thumbnails/11.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022042218/5ec388ed4d1ca6515f5cfdd8/html5/thumbnails/12.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022042218/5ec388ed4d1ca6515f5cfdd8/html5/thumbnails/13.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022042218/5ec388ed4d1ca6515f5cfdd8/html5/thumbnails/14.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022042218/5ec388ed4d1ca6515f5cfdd8/html5/thumbnails/15.jpg)
![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](https://reader034.vdocuments.site/reader034/viewer/2022042218/5ec388ed4d1ca6515f5cfdd8/html5/thumbnails/16.jpg)
![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](https://reader034.vdocuments.site/reader034/viewer/2022042218/5ec388ed4d1ca6515f5cfdd8/html5/thumbnails/17.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022042218/5ec388ed4d1ca6515f5cfdd8/html5/thumbnails/18.jpg)
![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](https://reader034.vdocuments.site/reader034/viewer/2022042218/5ec388ed4d1ca6515f5cfdd8/html5/thumbnails/19.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022042218/5ec388ed4d1ca6515f5cfdd8/html5/thumbnails/20.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022042218/5ec388ed4d1ca6515f5cfdd8/html5/thumbnails/21.jpg)
![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](https://reader034.vdocuments.site/reader034/viewer/2022042218/5ec388ed4d1ca6515f5cfdd8/html5/thumbnails/22.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022042218/5ec388ed4d1ca6515f5cfdd8/html5/thumbnails/23.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022042218/5ec388ed4d1ca6515f5cfdd8/html5/thumbnails/24.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022042218/5ec388ed4d1ca6515f5cfdd8/html5/thumbnails/25.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022042218/5ec388ed4d1ca6515f5cfdd8/html5/thumbnails/26.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022042218/5ec388ed4d1ca6515f5cfdd8/html5/thumbnails/27.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022042218/5ec388ed4d1ca6515f5cfdd8/html5/thumbnails/28.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022042218/5ec388ed4d1ca6515f5cfdd8/html5/thumbnails/29.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022042218/5ec388ed4d1ca6515f5cfdd8/html5/thumbnails/30.jpg)
![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](https://reader034.vdocuments.site/reader034/viewer/2022042218/5ec388ed4d1ca6515f5cfdd8/html5/thumbnails/31.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022042218/5ec388ed4d1ca6515f5cfdd8/html5/thumbnails/32.jpg)
![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](https://reader034.vdocuments.site/reader034/viewer/2022042218/5ec388ed4d1ca6515f5cfdd8/html5/thumbnails/33.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022042218/5ec388ed4d1ca6515f5cfdd8/html5/thumbnails/34.jpg)
![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](https://reader034.vdocuments.site/reader034/viewer/2022042218/5ec388ed4d1ca6515f5cfdd8/html5/thumbnails/35.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022042218/5ec388ed4d1ca6515f5cfdd8/html5/thumbnails/36.jpg)
![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](https://reader034.vdocuments.site/reader034/viewer/2022042218/5ec388ed4d1ca6515f5cfdd8/html5/thumbnails/37.jpg)
(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](https://reader034.vdocuments.site/reader034/viewer/2022042218/5ec388ed4d1ca6515f5cfdd8/html5/thumbnails/38.jpg)
![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](https://reader034.vdocuments.site/reader034/viewer/2022042218/5ec388ed4d1ca6515f5cfdd8/html5/thumbnails/39.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022042218/5ec388ed4d1ca6515f5cfdd8/html5/thumbnails/40.jpg)
![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](https://reader034.vdocuments.site/reader034/viewer/2022042218/5ec388ed4d1ca6515f5cfdd8/html5/thumbnails/41.jpg)
![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](https://reader034.vdocuments.site/reader034/viewer/2022042218/5ec388ed4d1ca6515f5cfdd8/html5/thumbnails/42.jpg)
![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](https://reader034.vdocuments.site/reader034/viewer/2022042218/5ec388ed4d1ca6515f5cfdd8/html5/thumbnails/43.jpg)
![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](https://reader034.vdocuments.site/reader034/viewer/2022042218/5ec388ed4d1ca6515f5cfdd8/html5/thumbnails/44.jpg)
![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](https://reader034.vdocuments.site/reader034/viewer/2022042218/5ec388ed4d1ca6515f5cfdd8/html5/thumbnails/45.jpg)
![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](https://reader034.vdocuments.site/reader034/viewer/2022042218/5ec388ed4d1ca6515f5cfdd8/html5/thumbnails/46.jpg)
![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](https://reader034.vdocuments.site/reader034/viewer/2022042218/5ec388ed4d1ca6515f5cfdd8/html5/thumbnails/47.jpg)
![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](https://reader034.vdocuments.site/reader034/viewer/2022042218/5ec388ed4d1ca6515f5cfdd8/html5/thumbnails/48.jpg)
![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](https://reader034.vdocuments.site/reader034/viewer/2022042218/5ec388ed4d1ca6515f5cfdd8/html5/thumbnails/49.jpg)
![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](https://reader034.vdocuments.site/reader034/viewer/2022042218/5ec388ed4d1ca6515f5cfdd8/html5/thumbnails/50.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022042218/5ec388ed4d1ca6515f5cfdd8/html5/thumbnails/51.jpg)
![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](https://reader034.vdocuments.site/reader034/viewer/2022042218/5ec388ed4d1ca6515f5cfdd8/html5/thumbnails/52.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022042218/5ec388ed4d1ca6515f5cfdd8/html5/thumbnails/53.jpg)