Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 50 lines (39 sloc) 1.637 kb
659c215 @davidjrice Adding Vagrant VM configuration and docs to build and run a couchbase…
davidjrice authored
1 # -*- mode: ruby -*-
2 # vi: set ft=ruby :
55915ee @davidjrice Improve vagrant build process, don't use a pre-packaged box as SSH ke…
davidjrice authored
3 # MIRROR = "http://packages.couchbase.com/releases/2.0.0-developer-preview-4"
4 # VERSION = "couchbase-server-community_x86_64_2.0.0-dev-preview-4.deb"
5 MIRROR = "http://builds.hq.northscale.net/releases/couch/2.0.0-dev-preview-4.1"
6 VERSION = "couchbase-server-community_x86_2.0.0dp4r-730-rel.deb"
659c215 @davidjrice Adding Vagrant VM configuration and docs to build and run a couchbase…
davidjrice authored
7
320e092 @davidjrice Improve vagrant config, upload prebuilt pkg to S3 for easy developmen…
davidjrice authored
8 # Vagrant: http://vagrantup.com
659c215 @davidjrice Adding Vagrant VM configuration and docs to build and run a couchbase…
davidjrice authored
9 Vagrant::Config.run do |config|
10
320e092 @davidjrice Improve vagrant config, upload prebuilt pkg to S3 for easy developmen…
davidjrice authored
11 # Use 64bit Ubuntu Lucid 10.04
55915ee @davidjrice Improve vagrant build process, don't use a pre-packaged box as SSH ke…
davidjrice authored
12
13 config.vm.box = "lucid32"
14 config.vm.box_url = "http://files.vagrantup.com/lucid32.box"
15
16 #config.vm.box = "lucid64"
17 #config.vm.box_url = "http://files.vagrantup.com/lucid64.box"
18
19 # config.vm.box = "lucid64.couchbase-2.0.0.dp4.722"
20 # config.vm.box_url = "http://libcouchbase.s3.amazonaws.com/lucid64.couchbase-2.0.0.dp4.722.box"
659c215 @davidjrice Adding Vagrant VM configuration and docs to build and run a couchbase…
davidjrice authored
21
320e092 @davidjrice Improve vagrant config, upload prebuilt pkg to S3 for easy developmen…
davidjrice authored
22 # Set RAM to 1024mb
659c215 @davidjrice Adding Vagrant VM configuration and docs to build and run a couchbase…
davidjrice authored
23 config.vm.customize ["modifyvm", :id, "--memory", 1024]
24
320e092 @davidjrice Improve vagrant config, upload prebuilt pkg to S3 for easy developmen…
davidjrice authored
25 # Install Couchbase
55915ee @davidjrice Improve vagrant build process, don't use a pre-packaged box as SSH ke…
davidjrice authored
26 config.vm.provision :shell, :inline => INSTALLER
27 # config.vm.provision :shell, :path => "couchbase.sh"
28
29 config.vm.network :hostonly, "#{ENV['COUCHBASE_HOST']}"
659c215 @davidjrice Adding Vagrant VM configuration and docs to build and run a couchbase…
davidjrice authored
30
55915ee @davidjrice Improve vagrant build process, don't use a pre-packaged box as SSH ke…
davidjrice authored
31 # TODO: port forwarding does not work yet (need to use hostonly network)
32 #
320e092 @davidjrice Improve vagrant config, upload prebuilt pkg to S3 for easy developmen…
davidjrice authored
33 # Forward port for couchbase admin UI
34 # open http://localhost:8091
55915ee @davidjrice Improve vagrant build process, don't use a pre-packaged box as SSH ke…
davidjrice authored
35 # config.vm.forward_port 8091, 8091
320e092 @davidjrice Improve vagrant config, upload prebuilt pkg to S3 for easy developmen…
davidjrice authored
36
37 # Forward ports for couchbase client
38 # http://www.couchbase.com/docs/couchbase-manual-2.0/couchbase-network-ports.html
55915ee @davidjrice Improve vagrant build process, don't use a pre-packaged box as SSH ke…
davidjrice authored
39 # config.vm.forward_port 8092, 8092
40 # config.vm.forward_port 11211, 11211
41 # config.vm.forward_port 11210, 11210
659c215 @davidjrice Adding Vagrant VM configuration and docs to build and run a couchbase…
davidjrice authored
42 end
320e092 @davidjrice Improve vagrant config, upload prebuilt pkg to S3 for easy developmen…
davidjrice authored
43
55915ee @davidjrice Improve vagrant build process, don't use a pre-packaged box as SSH ke…
davidjrice authored
44 # Simple Couchbase Installer
320e092 @davidjrice Improve vagrant config, upload prebuilt pkg to S3 for easy developmen…
davidjrice authored
45 INSTALLER = <<-SRC
46 echo wget #{VERSION}
47 wget -q #{MIRROR}/#{VERSION}
48 echo install #{VERSION}
49 sudo dpkg -i #{VERSION}
50 SRC
Something went wrong with that request. Please try again.