Update README with recent dev box changes
This commit is contained in:
parent
ce8445b001
commit
4b7be3dd72
1 changed files with 27 additions and 8 deletions
35
README.md
35
README.md
|
@ -108,7 +108,7 @@ bundle install
|
||||||
bundle exec rake # to run all specs
|
bundle exec rake # to run all specs
|
||||||
```
|
```
|
||||||
|
|
||||||
To rebuild and add the new quantal64 box:
|
To rebuild and add the provided quantal64 box:
|
||||||
|
|
||||||
```
|
```
|
||||||
bundle exec rake boxes:quantal64:build
|
bundle exec rake boxes:quantal64:build
|
||||||
|
@ -116,16 +116,35 @@ vagrant-lxc box add quantal64 boxes/output/lxc-quantal64.box
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
### Using VirtualBox for development
|
### Using `vagrant-lxc` to develop itself
|
||||||
|
|
||||||
I've also prepared a Vagrant 1.0 VirtualBox machine for development that you can
|
Yes! The gem has been [bootstrapped](http://en.wikipedia.org/wiki/Bootstrapping_(compilers)
|
||||||
get up and running with the [`setup-vagrant-dev-box`](setup-vagrant-dev-box)
|
and since you can boot a container from within another, after cloning the
|
||||||
script. Feel free to use it :)
|
project you can run the commands below from the host machine to get a container
|
||||||
|
ready for development:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
bundle install
|
||||||
|
cd development
|
||||||
|
cp Vagrantfile.dev.lxc Vagrantfile
|
||||||
|
# Required in order to allow nested containers to be started
|
||||||
|
sudo apt-get install apparmor-utils && sudo aa-complain /usr/bin/lxc-start
|
||||||
|
./setup-lxc-dev-box
|
||||||
|
```
|
||||||
|
|
||||||
|
That should result in a container ready to be `bundle exec vagrant-lxc ssh`ed.
|
||||||
|
Once you've SSH into the guest container, you'll be already on the project's root.
|
||||||
|
Keep in mind that you'll probably need to run `sudo aa-complain /usr/bin/lxc-start`
|
||||||
|
on the host whenever you want to hack on it, otherwise you won't be able to
|
||||||
|
start nested containers there to try things out.
|
||||||
|
|
||||||
|
|
||||||
|
### Using VirtualBox and Vagrant 1.0 for development
|
||||||
|
|
||||||
```
|
```
|
||||||
cp Vagrantfile.dev.1.0 Vagrantfile
|
cd development
|
||||||
./setup-vagrant-dev-box
|
cp Vagrantfile.dev.vb Vagrantfile
|
||||||
vagrant ssh
|
vagrant up
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue