環境: OSX Yosemite, Parallels, Vagrant(v1.6.5)
Vagrantのparallelsプラグインはインストール済み。
OpenShiftを引っ張ってくる。
$ mkdir -p $GOPATH/src/github.com/openshift $ cd $GOPATH/src/github.com/openshift $ git clone git://github.com/openshift/origin $ cd origin
Parallelsだとエラーが出る。
$ vagrant up --provider=parallels Bringing machine 'openshiftdev' up with 'parallels' provider... There are errors in the configuration of this machine. Please fix the following errors and try again: vm: * A box must be specified.
Virtualboxだと大丈夫。
$ vagrant up --provider=virtualbox Bringing machine 'openshiftdev' up with 'virtualbox' provider... ==> openshiftdev: Box 'fedora_inst' could not be found. Attempting to find and install... (略)
Vagrantfileを見ると、それっぽい記述がある。
vagrant_openshift_config = { "instance_name" => "origin-dev", "os" => "fedora", "dev_cluster" => false, "insert_key" => true, "num_minions" => ENV['OPENSHIFT_NUM_MINIONS'] || 2, "rebuild_yum_cache" => false, "cpus" => 2, "memory" => 1024, "virtualbox" => { "box_name" => "fedora_inst", "box_url" => "https://mirror.openshift.com/pub/vagrant/boxes/openshift3/fedora_virtualbox_inst.box" }, "vmware" => { "box_name" => "fedora_inst", "box_url" => "http://opscode-vm-bento.s3.amazonaws.com/vagrant/vmware/opscode_fedora-20_chef-provisionerless.box" }, "libvirt" => { "box_name" => "fedora_inst", "box_url" => "https://mirror.openshift.com/pub/vagrant/boxes/openshift3/fedora_libvirt_inst.box" }, "aws" => { "_see_also_" => AWS_CRED_FILE, "box_name" => "aws-dummy-box", "box_url" => AWS_BOX_URL, "ami" => "<AMI>", "ami_region" => "<AMI_REGION>", "ssh_user" => "<SSH_USER>", }, "openstack" => { '_see_also_' => OPENSTACK_CRED_FILE, 'box_name' => "openstack-dummy-box", 'box_url' => OPENSTACK_BOX_URL, 'flavor' => "m1.tiny", 'image' => "Fedora", 'ssh_user' => "root", },
所感
OpenShiftをいじってみているが、よくわからん。
v3 からDocker, Kubernetes ベースに変更されたらしい。