Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up for free
Vagrant 101
Uğur Özyılmazel
April 15, 2015
Programming
2
170
Vagrant 101
Sanal makine orkestrasyon aracı Vagrant'a genel bakış.
Uğur Özyılmazel
April 15, 2015
Tweet
Share
More Decks by Uğur Özyılmazel
See All by Uğur Özyılmazel
Makefile değil, Rakefile
vigo
1
400
Bir Django Projesi : <Buraya RUBY ekleyin>
vigo
1
280
Ruby 101
vigo
1
73
Django
vigo
4
350
Gündelik Hayatta GIT İpuçları
vigo
3
520
Bash 101
vigo
3
430
TDD - Test Driven Development
vigo
2
120
Yazılımcı Kimdir?
vigo
0
320
Ruby'i Tanıyalım
vigo
0
230
Other Decks in Programming
See All in Programming
機能横断型チームにおける技術改善
takeshiakutsu
3
450
코드 품질 1% 올리기
pluu
1
970
GraphQL+KMM開発でわかったこと / What we learned from GraphQL+KMM development
kubode
0
130
Milestoner
bkuhlmann
1
200
From Java 11 to 17 and beyond
josepaumard
0
300
質とスピード(2022春版、質疑応答用資料付き) / Quality and Speed 2022 Spring Edition
twada
PRO
28
18k
Android Architecture Design With Koin
agiuliani
0
230
roadmap to rust 2024
matsu7874
1
800
Explore Java 17 and beyond
josepaumard
3
650
Licences open source : entre guerre de clochers et radicalité
pylapp
1
270
ebpfとWASMに思いを馳せる2022 / techfeed-conference-2022-ebpf-wasm-amsy810
masayaaoyama
0
660
職場にPythonistaを増やす方法
soogie
0
310
Featured
See All Featured
Music & Morning Musume
bryan
35
4.1k
Design by the Numbers
sachag
271
17k
Designing the Hi-DPI Web
ddemaree
272
32k
A Philosophy of Restraint
colly
192
14k
Optimizing for Happiness
mojombo
365
63k
Infographics Made Easy
chrislema
233
17k
Bootstrapping a Software Product
garrettdimon
295
110k
What the flash - Photography Introduction
edds
61
9.9k
Put a Button on it: Removing Barriers to Going Fast.
kastner
56
2.3k
10 Git Anti Patterns You Should be Aware of
lemiorhan
638
52k
4 Signs Your Business is Dying
shpigford
169
20k
A Tale of Four Properties
chriscoyier
149
20k
Transcript
EVSİZ BARKSIZ ADAM!
Sanal Makine Orkestrasyon Aracı
Uğur "vigo" Özyılmazel vigobronx vigo
Hızlıca geliştirme ortamı kurmayı sağlayan bir araç!
Mitchell Hashimoto tarafından Ruby ile geliştirildi ve ilk olarak Ruby
gem'i şeklinde kullanılmaya başlandı.
Windows Linux Mac OS X
https://www.virtualbox.org/wiki/Downloads 1 VirtualBox ve Extention Pack
http://www.vagrantup.com/downloads 2 1.7.2
vagrant init hashicorp/precise64 vagrant up vagrant ssh 3 Ubuntu 12.04
LTS 64-bit
Vagrantfile
None
HOST GUEST
config.vm.box = "hashicorp/precise64" config.vm.network "forwarded_port", guest: 80, host: 8080 #
http://localhost:8080 => box'da:80 config.vm.network "private_network", ip: "192.168.33.101" config.vm.synced_folder ".", "/var/www" /vagrant Default mount
vagrant -v | --version vagrant -h | --help vagrant ssh
vagrant up vagrant halt vagrant destroy vagrant package vagrant global-status vagrant plugin list vagrant plugin install vagrant-vbguest vagrant box list vagrant box add USER/Box ?
user Kullanıcı Adı Şifre vagrant vagrant Varsayılan kullanıcı adı ve
şifresi
provider VirtualBox VMWare AWS Digital Ocean Rackspace Docker * Hyper-V
* vagrant up --provider=vmware_fusion vagrant box list - hashicorp/precise64 (virtualbox, 1.1.0) * Ek konfigürasyon işlemleri gerekiyor
provisioning inline file shell Ansible config.vm.provision "shell", inline: "echo hello"
config.vm.provision "shell" do |s| s.inline = "echo hello" end Chef Salt Puppet Docker
provisioning inline file shell Ansible # isimlendirilebiliyor config.vm.provision "bootstrap", type:
"shell" do |s| s.inline = "echo hello" end Chef Salt Puppet Docker
provisioning inline file shell Ansible # her seferinde çalışsın config.vm.provision
"shell", inline: "echo hello", run: "always" Chef Salt Puppet Docker
provisioning inline file shell Ansible # Host'daki .gitconfig'i, Guest'deki vagrant
# kullanıcısının home'a kopyala... config.vm.provision "file", source: "~/.gitconfig", destination: ".gitconfig" Chef Salt Puppet Docker
provisioning inline file shell Ansible # script.sh'deki komutları çalıştır Vagrant.configure("2")
do |config| config.vm.provision "shell", path: "script.sh" end Chef Salt Puppet Docker
provisioning
linkler http://docs.vagrantup.com/ https://atlas.hashicorp.com/ http://www.vagrantbox.es/
TEŞEKKÜRLER SORULAR?
@mitchellh @vigobronx Kod.io 2014, Avusturya
DEMO