Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Move Fast, Don't Break Your Infra Configuraiontion

Move Fast, Don't Break Your Infra Configuraiontion


taichi nakashima

October 23, 2014

More Decks by taichi nakashima

Other Decks in Technology


  1. Move Fast , Don’t Break Your Infra Configuration https://www.flickr.com/photos/unforgiven/9278027165

  2. I’m Taichi Nakashima @deeeet tcnksm https://www.flickr.com/photos/unforgiven/9278027165

  3. None
  4. None
  5. None
  6. https://www.flickr.com/photos/unforgiven/9278027165 Docker But related topic to Chef or Puppet, OpenStack

  7. https://www.flickr.com/photos/unforgiven/9278027165 Container is Future ?

  8. https://www.flickr.com/photos/unforgiven/9278027165 https://speakerdeck.com/jbeda/containers-at-scale

  9. https://www.flickr.com/photos/unforgiven/9278027165 http://azure.microsoft.com/blog/2014/10/15/new-windows-server-containers-and-azure-support-for-docker/

  10. https://www.flickr.com/photos/unforgiven/9278027165 We should try ! Container makes our business great

    or not
  11. https://www.flickr.com/photos/unforgiven/9278027165 How to move ? There are some risks in

    new technology
  12. https://www.flickr.com/photos/unforgiven/9278027165 We already have infra configuration

  13. https://www.flickr.com/photos/unforgiven/9278027165

  14. https://www.flickr.com/photos/unforgiven/9278027165 tool to create identical machine images for multiple platforms

    from a single json configuration file
  15. https://www.flickr.com/photos/unforgiven/9278027165 creates image for

  16. https://www.flickr.com/photos/unforgiven/9278027165 is able to use for image provisioning

  17. https://www.flickr.com/photos/unforgiven/9278027165 You can Build Docker Images Without Dockerfiles You can

    use your configuration tool
  18. https://www.flickr.com/photos/unforgiven/9278027165 If you don't like Docker, or Docker isn't good

    for this specific use case, then Dockerfiles have to be translated over to another format. … Packer provides a pretty low-risk way @mitchellh “
  19. https://www.flickr.com/photos/unforgiven/9278027165 You can easily pivot New Infra Trends Without Breaking

    Your Infra Configuration
  20. https://www.flickr.com/photos/unforgiven/9278027165 Build Docker Image with Chef cook-book Sample Example:

  21. https://www.flickr.com/photos/unforgiven/9278027165 + machine.json cookbook

  22. https://www.flickr.com/photos/unforgiven/9278027165 { "builders":[{...}], ! "provisioners":[{...}], ! "post-processors": [{...}] } >

    cat machine.json
  23. https://www.flickr.com/photos/unforgiven/9278027165 { "builders":[{ "type": "docker", "image": "ubuntu:latest", "commit": true }],

    ! "provisioners":[{...}], ! "post-processors": [{...}] } > cat machine.json Base Image to start with
  24. https://www.flickr.com/photos/unforgiven/9278027165 { "builders":[{...}], ! "provisioners":[{ "type": "chef-solo", "cookbook_paths": ["site-cookbooks"], "run_list":

    ["apache::default"] }], ! "post-processors": [{...}] } > cat machine.json How to Install and configure software CookBook path , run list
  25. https://www.flickr.com/photos/unforgiven/9278027165 { "builders":[{...}], ! "provisioners":[{...}], ! "post-processors": [{ "type": "docker-tag",

    "repository": “tcnksm/web-base", "tag": "0.1" }] } > cat machine.json How to generate machine Image Image repository with tag
  26. https://www.flickr.com/photos/unforgiven/9278027165 > packer build machine.json

  27. https://www.flickr.com/photos/unforgiven/9278027165 Demo

  28. Move Fast , Don’t Break Your Infra Configuration https://www.flickr.com/photos/unforgiven/9278027165

  29. https://www.flickr.com/photos/unforgiven/9278027165 @deeeet