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
Tweet

More Decks by taichi nakashima

Other Decks in Technology

Transcript

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

  8. https://www.flickr.com/photos/unforgiven/9278027165
    How to move ?
    There are some risks in new technology

    View full-size slide

  9. https://www.flickr.com/photos/unforgiven/9278027165
    We already have infra configuration

    View full-size slide

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

    View full-size slide

  11. https://www.flickr.com/photos/unforgiven/9278027165
    tool to create identical machine
    images for multiple platforms
    from a single json configuration file

    View full-size slide

  12. https://www.flickr.com/photos/unforgiven/9278027165
    creates image for

    View full-size slide

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

    View full-size slide

  14. https://www.flickr.com/photos/unforgiven/9278027165
    You can Build
    Docker Images
    Without Dockerfiles
    You can use your configuration tool

    View full-size slide

  15. 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

    View full-size slide

  16. https://www.flickr.com/photos/unforgiven/9278027165
    You can easily pivot
    New Infra Trends
    Without Breaking
    Your Infra Configuration

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

  20. 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

    View full-size slide

  21. 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

    View full-size slide

  22. 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

    View full-size slide

  23. https://www.flickr.com/photos/unforgiven/9278027165
    > packer build machine.json

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide