This is a configuration file for Vagrant to make Chainer development environment on Amazon EC2.
- Vagrant
- vagrant-aws
- vagrant-fabric
- fabric
First, install Vagrant (https://www.vagrantup.com/) and set path.
Install the two Vagrant plugins.
$ vagrant plugin install vagrant-aws
$ vagrant plugin install vagrant-fabric
Add dummy box.
$ vagrant box add dummy https://github.com/mitchellh/vagrant-aws/raw/master/dummy.box
Install fabric.
$ pip install fabric
Make EC2 account, get an access key, make a secruty group and make a private key.
Rename config.yml.sample
to config.yml
and edit it with your information.
vagrant up
makes a GPU instance on your EC2 account.
$ vagrant up
Setups the instance with vagrant provision
.
It installs tools and libraries which are required to build Chainer, and downloads sources of Chainer.
$ vagrant provision
Now, run ssh and login the instance.
$ vagrant ssh
You can find chainer
directory containing source files of Chainer.