Skip to content

コマンド1つでWebアプリの開発環境が整ったVMを立ち上げられるためのリポジトリ

License

Notifications You must be signed in to change notification settings

saxsir/VagrantBoilerPlate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VagrantBoilerPlate

ローカルに必要な環境

$ vagrant plugin install vagrant-vbguest
$ vagrant plugin install vagrant-omnibus
$ vagrant plugin list

vagrant-login (1.0.1, system)
vagrant-omnibus (1.4.1) #VM環境に自動でchefをインストールするのに必要
vagrant-share (1.1.1, system)
vagrant-vbguest (0.10.0) #自動的にGuest Additionsを更新してくれるプラグイン

使い方

仮想サーバー構築

$ git clone [email protected]:saxsir/VagrantBoilerPlate.git
$ cd VagrantBoilerPlate
$ vim Vagrantfile
# 必要であれば仮想サーバー名, ローカルIPアドレス, 作業用ユーザー名を書き換える
$ vagrant up

動作確認

ブラウザでhttp://192.168.33.10/phpinfo.phpにアクセスしてPHPの設定ページが見えればたぶん大丈夫。

サーバーにログイン

$ vagrant ssh #vagrantユーザーはsudoできる

仮想サーバー環境構成

OS

  • CentOS 6.5

Packages

  • httpd
    • 自動起動
  • php
    • 5.6
  • mysql
    • 5.6
    • 自動起動
  • iptables
    • 自動起動
    • port22,80 allow
  • git, zsh, vim, dstat, tree, unzip, cronie-noanacron, siege, npm, sl

自分でレシピを追加したい場合

bundle install

$ bundle install --path vendor/bundle

bundle exec knife cookbook create

$ bundle exec knife cookbook create レシピ名 -o chef/site-cookbooks

About

コマンド1つでWebアプリの開発環境が整ったVMを立ち上げられるためのリポジトリ

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages