Switch to unified view

a/vagrant/README b/vagrant/README
...
...
22
# Get the base box, see http://www.vagrantbox.es/
22
# Get the base box, see http://www.vagrantbox.es/
23
# 12.04 is LTS, so will be good to stick with for some time
23
# 12.04 is LTS, so will be good to stick with for some time
24
$ vagrant box add ubuntu-1204-server-amd64 http://cloud-images.ubuntu.com/precise/current/precise-server-cloudimg-vagrant-amd64-disk1.box
24
$ vagrant box add ubuntu-1204-server-amd64 http://cloud-images.ubuntu.com/precise/current/precise-server-cloudimg-vagrant-amd64-disk1.box
25
$ vagrant init ubuntu-1204-server-amd64
25
$ vagrant init ubuntu-1204-server-amd64
26
26
27
# Get a copy of the provisioning scripts (note, Vagrantfile may change from release to release and may need manual updating)
27
# Get a copy of the provisioning scripts (note, Vagrantfile may change from
28
# release to release and may need manual updating)
28
$ cp -R /var/local/allura/vagrant/* .
29
$ cp -R /var/local/allura/vagrant/* .
29
30
30
# At this point you can make whatever changes you want to the provisioning
31
# At this point you can make whatever changes you want to the provisioning
31
# scripts.  Currently, the .pp puppet file runs first and sets some stuff up
32
# scripts.  Currently, the .pp puppet file runs first and sets some stuff up
32
# and then allura_setup.sh runs and does more.
33
# and then allura_setup.sh runs and does more.
33
34
34
# Provision the box (this will take a while)
35
# Provision the box (this will take a while)
35
$ vagrant up
36
$ vagrant up
36
37
37
# If you get an error, you can run `vagrant ssh` to get in and debug, and then `vagrant destroy` to start over
38
# If you get an error, you can run `vagrant ssh` to get in and debug, and then
39
# `vagrant destroy` to start over
40
41
# Once the provisioning succeeds, `vagrant ssh` to the vm and do any testing
42
# you want to do. You should at least run `./update.sh && ~/start_allura` and
43
# make sure you can access the app at http://localhost:8080. After testing,
44
# remain logged into the vm for the next step (compression).
45
46
# Compress the VM. This will make your final .box file much smaller. It'll
47
# take a while. Once it finished, logout of the vm.
48
$ sudo /vagrant/compress.sh
38
49
39
# Package the Allura box
50
# Package the Allura box
40
$ vagrant package --vagrantfile Vagrantfile.pkg
51
$ vagrant package --vagrantfile Vagrantfile.pkg
41
52
42
# Test your new box
53
# Test your new box