$30 off During Our Annual Pro Sale. View Details »

va (Short intro to vagrant)

va (Short intro to vagrant)

In this 15 min. talk, the basics of vagrant are described. It gives an overview about what problems vagrant solves and how one can start using vagrant. It also describes a common pattern of how to develop with vagrant in place.

Sebastian

March 20, 2014
Tweet

More Decks by Sebastian

Other Decks in Programming

Transcript

  1. va
    (A short intro to vagrant)
    MongoDB Vienna - March 2014
    @Sgoettschkes

    View Slide

  2. “It works on my machine”

    View Slide

  3. “It’s all in SETUP.md”

    View Slide

  4. “You just need to add ...”

    View Slide

  5. View Slide

  6. Providers

    View Slide

  7. Provisioners
    #!

    View Slide

  8. Synced folders
    HOST GUEST
    /home/Seba
    stian/worksp
    ace/aweso
    meProject
    /opt/aweso
    meProject
    Virtualbox Shared folders
    NFS
    RSync
    SMB

    View Slide

  9. Configuration
    Vagrant.configure("2") do |config|
    config.vm.box = "Sgoettschkes/debian7"
    config.vm.network "private_network", ip: "10.61.6.2"
    config.vm.hostname = "debian"
    config.vm.synced_folder "../project", "/opt/project"
    config.vm.provision shell, inline: "sudo apt-get update"
    end

    View Slide

  10. A sample workflow
    Repository
    Vagrantfile
    Provisioning files

    $ git clone [email protected]:vagrantLover/awesomeVm.git
    $ cd awesomeVm
    $ vagrant up
    # this may take a while
    $ vagrant ssh

    View Slide

  11. Thanks

    View Slide

  12. Resources
    ● http://www.vagrantup.com/
    ● https://vagrantcloud.com/
    ● http://stackoverflow.
    com/questions/tagged/vagrant
    ● IRC: #vagrant on Freenode

    View Slide