Top Banner
22

Dev environment with Vagrant, Volodymyr Pavlenko

Jul 15, 2015

Download

Internet

Tetiana Saputo
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Dev environment with Vagrant, Volodymyr Pavlenko
Page 2: Dev environment with Vagrant, Volodymyr Pavlenko

Problems

- dependencies installing and configuring on

different OSes

- dev env != prod env

- versions

Page 3: Dev environment with Vagrant, Volodymyr Pavlenko

☆☆☆Vagrant ☆☆☆

Page 4: Dev environment with Vagrant, Volodymyr Pavlenko

What is Vagrant?

File based CLI vm management

Page 5: Dev environment with Vagrant, Volodymyr Pavlenko

Installing

- install VirtualBox click

- install Vagrant click

Page 6: Dev environment with Vagrant, Volodymyr Pavlenko

Let’s getting started

Page 7: Dev environment with Vagrant, Volodymyr Pavlenko

Vagrantfile

Page 8: Dev environment with Vagrant, Volodymyr Pavlenko

Init Vagrant

Page 9: Dev environment with Vagrant, Volodymyr Pavlenko

vagrant up

Page 10: Dev environment with Vagrant, Volodymyr Pavlenko

vagrant ssh

Page 11: Dev environment with Vagrant, Volodymyr Pavlenko

Synced folders

Page 12: Dev environment with Vagrant, Volodymyr Pavlenko

Forwarded port

Page 13: Dev environment with Vagrant, Volodymyr Pavlenko

Forwarded port

Page 14: Dev environment with Vagrant, Volodymyr Pavlenko

Simple Flask project

Page 15: Dev environment with Vagrant, Volodymyr Pavlenko

Provisioning

- setup dependencies

- various provisioners supported

- provisioners can be combined

Page 16: Dev environment with Vagrant, Volodymyr Pavlenko

Flask provisioning

Page 17: Dev environment with Vagrant, Volodymyr Pavlenko

Flask provisioning

Page 18: Dev environment with Vagrant, Volodymyr Pavlenko

Multi-Machine

Page 19: Dev environment with Vagrant, Volodymyr Pavlenko

Private network

Page 20: Dev environment with Vagrant, Volodymyr Pavlenko

Network schema

dbWeb app

10.10.1.2 10.10.1.3

Page 21: Dev environment with Vagrant, Volodymyr Pavlenko

Goodies

- sharing https://atlas.hashicorp.com/development

- plugins https://github.com/mitchellh/vagrant/wiki/Available-Vagrant-Plugins

Page 22: Dev environment with Vagrant, Volodymyr Pavlenko

Thanks