Skip to content

Commit 5f031ee

Browse files
author
Warren Seymour
committed
Add couchdb 1.3 to vm
1 parent df0288f commit 5f031ee

File tree

4 files changed

+14
-1
lines changed

4 files changed

+14
-1
lines changed

Vagrantfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ Vagrant.configure("2") do |config|
55
config.vm.box = "precise32"
66
config.vm.provision :shell, :path => "_build/provision.sh"
77
config.vm.network :forwarded_port, host: 8080, guest: 80
8+
config.vm.network :forwarded_port, host: 8081, guest: 5984
89
end

_build/couchdb/local.ini

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[httpd]
2+
bind_address = 0.0.0.0
3+
enable_cors = true
4+
5+
[cors]
6+
origins = *

_build/provision.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
#!/usr/bin/env bash
22

3+
cp /vagrant/_build/sources.list /etc/apt/sources.list.d/
4+
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A6D3315B
5+
36
apt-get update
4-
apt-get install -y apache2
7+
apt-get install -y apache2 couchdb
58
rm -rf /var/www
69
ln -fs /vagrant /var/www
10+
cp /vagrant/_build/couchdb/local.ini /etc/couchdb/
11+
service couchdb restart

_build/sources.list

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
deb http://ppa.launchpad.net/nilya/couchdb-1.3/ubuntu precise main

0 commit comments

Comments
 (0)