dockercon sf 2015: docker in the new york times newsroom

68
Docker in the New York Times Newsroom github.com/buth @ericbuth #dockercon

Upload: docker-inc

Post on 31-Jul-2015

2.354 views

Category:

Technology


1 download

TRANSCRIPT

1. Docker in the New York Times Newsroom github.com/buth @ericbuth #dockercon 2. INT 3. [ DevOps ] 4. Blade 5. $ bl server create 6. $ bl tag node2 app 7. $ bl deploy app 8. what servers? (hello Solr, is your index up to date?) run Chef Client, unless its already running. is the client up to date? (maybe start over if it isnt)check system configuration in great detail. is the right version of Ruby installed? (maybe build it!) create a system user specifically for the application. build folders shared between deploys. forward the running SSH agent in order to pull code over SSH. install gems from the Gemfile in the versioned directory. does the application need database access? which one? does it have credentials?(maybe create db/credentials) run any necessary db migrations. write out a unicorn configuration file. write out an init.d script. replace the current symlink. attempt a graceful restart of the Ruby application. then, possibly, consider moving on to routing. 9. Continuous Integration 10. image: ruby1.9.3 script: - gem update bundler --no-ri --no-rdoc - bundle install - bundle exec rspec spec notify: email: recipients: - [email protected] 11. image: ruby1.9.3 script: - gem update bundler --no-ri --no-rdoc - bundle install - bundle exec rspec spec notify: email: recipients: - [email protected] $ git push 12. A build step over a provision step. 13. True versioning. 14. Horizontal Scaling 15. immutable || distributed 16. Heterogeneity 17. + 18. + + 19. Micro-applications 20. more than 300. 21. density && speed 22. configuration discovery routing scheduling 23. configuration discovery routing scheduling 24. configuration discovery routing scheduling 25. github.com/newsdev/context 26. configuration discovery routing scheduling 27. github.com/newsdev/remora 28. configuration discovery routing scheduling 29. github.com/newsdev/promise 30. docker containers as consistency. 31. github.com/newsdev/longshore 32. Whats Next 33. router Whats a better notifier solution? secrets manager registry automated builder 34. Whats a better notifier solution?canonical 35. A Common News Use Case 36. Thank you Eric Buth github.com/buth @ericbuth #dockercon