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
Vagrant 101
Search
Uğur Özyılmazel
April 15, 2015
Programming
3
220
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
Idiomatic Go - Conventions over Configurations
vigo
2
220
Makefile değil, Rakefile
vigo
2
640
Bir Django Projesi : <Buraya RUBY ekleyin>
vigo
1
440
Ruby 101
vigo
1
95
Django
vigo
4
430
Gündelik Hayatta GIT İpuçları
vigo
4
590
Bash 101
vigo
4
490
TDD - Test Driven Development
vigo
3
160
Yazılımcı Kimdir?
vigo
1
390
Other Decks in Programming
See All in Programming
create_tableをしただけなのに〜囚われのuuid編〜
daisukeshinoku
0
260
range over funcの使い道と非同期N+1リゾルバーの夢 / about a range over func
mackee
0
110
Symfony Mapper Component
soyuka
2
740
RWC 2024 DICOM & ISO/IEC 2022
m_seki
0
210
これでLambdaが不要に?!Step FunctionsのJSONata対応について
iwatatomoya
2
3.7k
fs2-io を試してたらバグを見つけて直した話
chencmd
0
240
Stackless и stackful? Корутины и асинхронность в Go
lamodatech
0
800
Haze - Real time background blurring
chrisbanes
1
510
42 best practices for Symfony, a decade later
tucksaun
1
180
nekko cloudにおけるProxmox VE利用事例
irumaru
3
430
Effective Signals in Angular 19+: Rules and Helpers @ngbe2024
manfredsteyer
PRO
0
140
Beyond ORM
77web
7
890
Featured
See All Featured
Documentation Writing (for coders)
carmenintech
66
4.5k
How STYLIGHT went responsive
nonsquared
95
5.2k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
665
120k
A Modern Web Designer's Workflow
chriscoyier
693
190k
The Straight Up "How To Draw Better" Workshop
denniskardys
232
140k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
111
49k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
6
520
Code Review Best Practice
trishagee
65
17k
A Tale of Four Properties
chriscoyier
157
23k
The Cost Of JavaScript in 2023
addyosmani
45
7k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
44
9.3k
The Pragmatic Product Professional
lauravandoore
32
6.3k
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