Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Working with Vagrant
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Jan Schulte
May 19, 2015
Technology
0
66
Working with Vagrant
Slides from my talk I gave at the OTS leaners group on 19.05.2015
Jan Schulte
May 19, 2015
Tweet
Share
More Decks by Jan Schulte
See All by Jan Schulte
eurucamp special ticket offer for Rails Girls study groups
janschulte
0
93
Reproducible work environments
janschulte
1
79
Working in a different country
janschulte
0
59
Lightning talk about working with vagrant
janschulte
1
53
Other Decks in Technology
See All in Technology
【Oracle Cloud ウェビナー】[Oracle AI Database + AWS] Oracle Database@AWSで広がるクラウドの新たな選択肢とAI時代のデータ戦略
oracle4engineer
PRO
2
140
モダンUIでフルサーバーレスなAIエージェントをAmplifyとCDKでサクッとデプロイしよう
minorun365
4
200
登壇駆動学習のすすめ — CfPのネタの見つけ方と書くときに意識していること
bicstone
3
100
2026年、サーバーレスの現在地 -「制約と戦う技術」から「当たり前の実行基盤」へ- /serverless2026
slsops
2
240
Greatest Disaster Hits in Web Performance
guaca
0
230
ブロックテーマでサイトをリニューアルした話 / 2026-01-31 Kansai WordPress Meetup
torounit
0
470
名刺メーカーDevグループ 紹介資料
sansan33
PRO
0
1k
AIエージェントを開発しよう!-AgentCore活用の勘所-
yukiogawa
0
170
茨城の思い出を振り返る ~CDKのセキュリティを添えて~ / 20260201 Mitsutoshi Matsuo
shift_evolve
PRO
1
270
Kiro IDEのドキュメントを全部読んだので地味だけどちょっと嬉しい機能を紹介する
khmoryz
0
190
Claude_CodeでSEOを最適化する_AI_Ops_Community_Vol.2__マーケティングx_AIはここまで進化した.pdf
riku_423
2
560
FinTech SREのAWSサービス活用/Leveraging AWS Services in FinTech SRE
maaaato
0
130
Featured
See All Featured
Site-Speed That Sticks
csswizardry
13
1.1k
From π to Pie charts
rasagy
0
120
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
1.9k
Ruling the World: When Life Gets Gamed
codingconduct
0
140
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
50
Practical Orchestrator
shlominoach
191
11k
The browser strikes back
jonoalderson
0
370
Visualization
eitanlees
150
17k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.1k
Optimising Largest Contentful Paint
csswizardry
37
3.6k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
55
3.2k
Building a Scalable Design System with Sketch
lauravandoore
463
34k
Transcript
Working(with(Vagrant
$whoami $ Jan Schulte $ Software developer $ Berlin $
Asquera GmbH $ Rails Girls Coach $ Learning groups (Rubyseeds & Codingcats) $ Twitter: @neinasaservice
Why$do$I$care$about$Vagrant?
Back%then • Have&everything&installed&on&your&local&machine • Ruby • Rails • Node.js •
Databases&{Postgresql,&CouchDB,&Redis,&...}
Yeah,&If&you&just&could& go&ahead&and&make& this&change&to&this& project,&that&would&be& great —"The"client"from"two"months"ago
None
So#what#then? • Do$you$s(ll$have$the$old$setup? • Does$it$work$together$with$your$current$one?
Your%machine%is%different%from%produc3on • Opera'ng*system • File*system • Users • Permissions •
...
"Works'on'my' machine"
"Then&we&ship&your& machine"
Solving(this • Working)in)a)virtual)machine • A)new)virtual)machine)for)every)project/client
What%about%having%some%text%files%describing%how%the%VM%should% look%like? • Vagrantfile+,+Describes+the+VM+(Image,+Network,+...) • Shell+scripts+,+Describes+what+should+be+installed
Benefits • They're(under(version(control • Changes(to(infrastructure(are(documented • Avoid(snowflake(servers1 1"h$p:/ /mar+nfowler.com/bliki/SnowflakeServer.html
Bring&DEV&closer&to&Produc3on
It's%that%simple
Vagrant.configure(2) do |config| config.vm.box = "ubuntu/trusty64" config.vm.network "private_network", ip: "192.168.33.10"
config.vm.provision "shell", inline <<-SHELL sudo apt-get install git SHELL end more%informa*on%at%vagrantup.com
(jan@barad-dur)$ vagrant up ... (jan@barad-dur)$ vagrant ssh vagrant@trusty64$: git --version
git version 2.3.3 vagrant@trusty64$: exit (jan@barad-dur)$ vagrant destroy -f
It's%effort%for%one%person%and%the% whole%team%benefits —"#"From"Ruby"Rogues"192"2 2"h$p:/ /devchat.tv/ruby3rogues/1923rr3vagrant3with3mitchell3hashimoto
Where%does%this%come%in%handy?
When%new%people%join%the%team
It's%disposable
Set$up$produc+on$servers
Ques%ons?
Source • h#p:/ /devchat.tv/ruby2rogues/1132rr2devops2with2nathen2 harvey • h#ps:/ /www.youtube.com/watch?v=qKb0_132E9w