Vagrant for Development

840 views

Published on

Vagrant for Development

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
840
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
10
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Vagrant for Development

  1. 1. Vagrant for Development — linux_china
  2. 2. Agenda What is Vagrant? Why Vagrant Env Management Vagrant for Java Vagrant for CI
  3. 3. What is Vagrant? Create and configure lightweight, reproducible, and portable development environments Virtual Machine, not Linux Container VirtualBox based Developed by Ruby
  4. 4. Why Vagrant? Isolation, Repeatable(reuse), Reliable development environment unified Per project per VM by Vagrantfile Distribute VM between team members Say goodbye to "works on my machine" bugs DevOps friendly
  5. 5. Env Management Shell Puppet Chef Jenv Install tools manually
  6. 6. Vagrant for Java jenv install Maven repository sync: 
 config.vm.synced_folder "~/.m2", "/home/vagrant/.m2" Tools: Tomcat, Maven etc Exec Maven Plugin to operate vagrant
  7. 7. Vagrant for CI Isolated VM for project Mock less Env maintain easy Maven with Vagrant support
  8. 8. Vagrant Install Install VirtualBox Install Vagrant Install boxes: vagrant box install box_name http:/ /url Init Vagrant: vagrant init box_name Start VM: vagrant up VM Access: Vagrant ssh Stop VM: vagrant halt Destroy VM: vagrant destroy Package VM: vagrant package —output xxx.box
  9. 9. Boxes lucid: Ubuntu 10.4 Precise: Ubuntu 12.4 CentOS 6.4
  10. 10. Vagrant Practice NetDriver to store box file vagrant.json network: private network hostname: config.vm.hostname=“xxxx"
  11. 11. FAQ

×