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
Jan Schulte
May 19, 2015
Technology
71
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Working with Vagrant
Slides from my talk I gave at the OTS leaners group on 19.05.2015
Jan Schulte
May 19, 2015
More Decks by Jan Schulte
See All by Jan Schulte
eurucamp special ticket offer for Rails Girls study groups
janschulte
0
98
Reproducible work environments
janschulte
1
85
Working in a different country
janschulte
0
66
Lightning talk about working with vagrant
janschulte
1
59
Other Decks in Technology
See All in Technology
認知負荷をGemini で溶かす — GKE 基盤「Orbit」における AI エージェントの実践
sansantech
PRO
1
260
モダンフロントエンド 開発研修
recruitengineers
PRO
3
510
Breaking the Seal: Static Deobfuscation of Compiled V8 JavaScript Bytecode Malware
hshrzd
0
600
Forza Horizon 6 のテレメトリ機能で 自動運転に使えそうな学習データを集める話
henjin0
0
140
【5分でわかる】セーフィー エンジニア向け会社紹介
safie_recruit
0
53k
【CEDEC2026】『GRANBLUE FANTASY: Relink - Endless Ragnarok』のバトル制作事例 ~最高のキャラゲーを目指して~
cygames
PRO
0
210
強化学習「理論」入門
enakai00
3
3.6k
Issue設計から始める仕様駆動開発 / 20260731 Mizuki Hirata
shift_evolve
PRO
1
140
Webアクセシビリティ入門 2026
recruitengineers
PRO
2
400
【CEDEC2026】次世代デジタルカードゲームのサーバー設計と運用 〜『Shadowverse: Worlds Beyond』の舞台裏~
cygames
PRO
1
940
AWS ネットワーク構築でハマった(ハマりかけた) 5選とそこから得た教訓
nagisa53
4
190
初めてのGitHub Actions / GitHub Actions at First
tooppoo
0
150
Featured
See All Featured
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
440
How to Think Like a Performance Engineer
csswizardry
28
2.7k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
11
980
Highjacked: Video Game Concept Design
rkendrick25
PRO
1
430
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
3
1.1k
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
290
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.7k
Reflections from 52 weeks, 52 projects
jeffersonlam
356
21k
So, you think you're a good person
axbom
PRO
2
2.1k
The Curious Case for Waylosing
cassininazir
1
450
Claude Code のすすめ
schroneko
67
230k
Reality Check: Gamification 10 Years Later
codingconduct
0
2.2k
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