CentOS 5.8 の ami を作る

bogrinder
URL: http://boxgrinder.org
ソース: https://github.com/boxgrinder/リポジトリとか

下記コマンドは CentOS 5.8 の ami を s3 上に作る.

Fedora をインストールして下記コマンドを実行.

# yum install rubygem-boxgrinder-core rubygem-boxgrinder-build
# mkdir ~/.boxgrinder
# cat > ~/.boxgrinder/config <<EOF
plugins:
  s3:
    access_key: ****
    secret_access_key: ****
    bucket: ****
    region: ****
    account_number: ****
    cert_file: ****
    key_file: ****
EOF
# cat > hogehoge.appl <<EOF
name: hogehoge
os:
  name: centos
  version: 5
  password: ****

packages:
  - openssh-server
EOF
# boxgrinder-build hogehoge.appl -p ec2 -d ami -f

access_key とか secret_access_key とか cert_file とか account_number は下記URLから取得
https://portal.aws.amazon.com/gp/aws/securityCredentials

key_file は 「NEWWORK&SECURITY」の「Key Pairs」とかで作成.

bucket は s3 上で作成したもの

region は ap-northeast-1 とか.詳しくは下記URLの当たり
https://github.com/boxgrinder/boxgrinder-build/blob/master/lib/boxgrinder-build/helpers/s3-helper.rb#L71


デフォで git 入れようとしたりしたけど他のリポジトリしたりビルドのために gcc 追加したりするとエラーで落ちるので諦めた.

自力でいろいろしたあと例っぽいもの見つけたけど git 入れられないの変わらなかったし別にという感じ.参考にはなるのでは.
https://github.com/boxgrinder/boxgrinder-appliances/blob/master/CentOS/CentOS-lamp.appl