More Related Content
Featured (20)
PDF
Storytelling For The Web: Integrate Storytelling in your Design ProcessChiara Aliotta?
PDF
How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...SocialHRCamp?
PDF
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts?
PDF
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow?
PDF
Content Methodology: A Best Practices Report (Webinar)contently?
PPTX
How to Prepare For a Successful Job Search for 2024Albert Qian?
PDF
5 Public speaking tips from TED - Visualized summarySpeakerHub?
PDF
ChatGPT and the Future of Work - Clark Boyd Clark Boyd?
PDF
Getting into the tech field. what next Tessa Mero?
PDF
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray?
Vagrant mongonouchi9
- 15. ? Version UPのリハーサル環境がほしい
? Versionごとの挙動の変化を確認したい
ex. 以前踏んだあのバグ、直ったのか確かめたい
? ReplicaSetsやSharding環境を何度も作り直すの
めんどくさい
? AWS使えば多数の環境を用意できるけど、有料。。
- 16. ? Version UPのリハーサル環境がほしい
? Versionごとの挙動の変化を確認したい
ex. 以前踏んだあのバグ、直ったのか確かめたい
? ReplicaSetsやSharding環境を何度も作り直すの
めんどくさい
? AWS使えば多数の環境を用意できるけど、有料。。
? 手順書作ってもメンテされない?しきれないよね
- 26. USBメモリ
+- win or mac
: Vagrantのインストールに必要なバイナリが入っています。
+- vagrant
: 今回作成するVagrantVMに必要なファイルが入っています。
- 32. ? $ sudo port install ruby19
下記のようにインストールされます
$ ruby1.9 -v
- 35. ? 下記のディレクトリ直下で、下記を実行
vagrant box add $VmName $vm.box
? Win : C:vagrantmongors 直下で
vagrant box add mongors
C:vagrantboxesCentOS-6.3-i386-v20130101.box
? Mac : ~/vagrant/mongors/ 直下で
vagrant box add mongors ~/vagrant/mongors/
boxes/CentOS-6.3-i386-v20130101.box
- 36. ? Vagrantfile を編集
Vagrant::Config.run do |config|
config.vm.box = "mongors"
config.vm.define :rs1 do |config|
config.vm.customize ["modifyvm", :id, "--memory", "1024", "--cpus", "1", "--name", "mongors1"]
config.vm.network :hostonly, "192.168.56.100", :netmask => "255.255.255.0“
end
end
- 41. ? Vagrantfile を編集
Vagrant::Config.run do |config|
config.vm.box = "mongors"
config.vm.define :rs1 do |config|
config.vm.customize ["modifyvm", :id, "--memory", "1024", "--cpus", "1", "--name", "mongors1"]
config.vm.network :hostonly, "192.168.56.100", :netmask => "255.255.255.0"
config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = "./chef-repo/cookbooks"
chef.add_recipe "mongodb"
end
end
end
- 44. ? ssh接続して、MongoDBのReplica Setsを初期化する
config = {
_id: 'mongors', members: [
{_id: 0, host: 'localhost:27017'},
{_id: 1, host: 'localhost:27018'},
{_id: 2, host: 'localhost:27019'}
]
}
rs.initiate(config);
$ /usr/local/mongodb/mongors.1/product/bin/mongo --port 27017
- 46. ? Sandbox (Sahara plugin)
vagrant gem install sahara
? 静止点の作成
vagrant sandbox on
? 静止点へのロールバック
vagrant sandbox rollback
? chefのレシピテストや、MongoDBなどのアップグ
レード手順の検証に便利です。
- 47. ? ## knife-solo が必要です。
? gem install knife-solo で入ります。
? 1.リソースリスト
http://docs.opscode.com/resource.html
? 2.参考レシピリスト
http://community.opscode.com/