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
68
0
Share
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
95
Reproducible work environments
janschulte
1
81
Working in a different country
janschulte
0
63
Lightning talk about working with vagrant
janschulte
1
55
Other Decks in Technology
See All in Technology
freee-mcpを Local→Remote で出してわかった MCP認可実装のリアル
terara
1
140
Terragrunt x Snowflake + dbt で作るマルチテナントなデータ基盤構築プラットフォーム
gak_t12
0
510
"スキルファースト"で作る、AIの自走環境
subroh0508
1
650
コーディングエージェントはTypeScriptの 型エラーをどう自己修正しているのか
melonps
3
260
パーソルキャリア IT/テクノロジー職向け 会社紹介資料|Company Introduction Deck
techtekt
PRO
0
250
Loadbalancing exporter internals
ymotongpoo
1
120
TSKaigi 2026 - 型プラグインシステムの実装に使われるテクニック
teamlab
PRO
1
120
続 運用改善、不都合な真実 〜 物理制約のない運用改善はほとんど無価値 / 20260518-ssmjp-kaizen-no-value-without-physical-constraints
opelab
2
290
【新卒研修】ライブデモ + compose.yaml読解_講義資料
dip_tech
PRO
0
100
Databricks 月刊サービスアップデートまとめ 2026年04月号
tyosi1212
0
140
AI Agent に“攻略本”を渡したら、150フォームの移行が回り始めた話/登壇資料(高橋 悟生)
hacobu
PRO
1
250
AI-Assisted Contributions and Maintainer Load - PyCon US 2026
pauloxnet
1
190
Featured
See All Featured
How to train your dragon (web standard)
notwaldorf
97
6.6k
Are puppies a ranking factor?
jonoalderson
1
3.4k
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
390
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
370
Mind Mapping
helmedeiros
PRO
1
190
WENDY [Excerpt]
tessaabrams
10
37k
How Software Deployment tools have changed in the past 20 years
geshan
0
33k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
AI: The stuff that nobody shows you
jnunemaker
PRO
7
650
How GitHub (no longer) Works
holman
316
150k
From π to Pie charts
rasagy
0
180
Product Roadmaps are Hard
iamctodd
PRO
55
12k
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