Permalink
Browse files

Improve vagrant build process, don't use a pre-packaged box as SSH ke…

…ys don't work, build from scratch and install couchbase t:50
  • Loading branch information...
1 parent 0773021 commit 55915ee2fc271be50be319ebfb795f59467a7c21 @davidjrice davidjrice committed Jun 6, 2012
Showing with 35 additions and 13 deletions.
  1. +4 −1 README.md
  2. +24 −11 Vagrantfile
  3. +1 −1 config/couchbase.yml
  4. +6 −0 couchbase.sh
View
@@ -79,4 +79,7 @@ Download and install this updated `libcouchbase` homebrew recipe.
rvm gemset use global
gem install vagrant --no-ri --no-rdoc
cd learningportal
- vagrant up
+
+ # edit COUCHBASE_HOST in .env to an appropriate IP to enable hostonly networking
+ export $(cat .env)
+ vagrant up
View
@@ -1,34 +1,47 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :
-MIRROR = "http://packages.couchbase.com/releases/2.0.0-developer-preview-4"
-VERSION = "couchbase-server-community_x86_64_2.0.0-dev-preview-4.deb"
+# MIRROR = "http://packages.couchbase.com/releases/2.0.0-developer-preview-4"
+# VERSION = "couchbase-server-community_x86_64_2.0.0-dev-preview-4.deb"
+MIRROR = "http://builds.hq.northscale.net/releases/couch/2.0.0-dev-preview-4.1"
+VERSION = "couchbase-server-community_x86_2.0.0dp4r-730-rel.deb"
# Vagrant: http://vagrantup.com
Vagrant::Config.run do |config|
# Use 64bit Ubuntu Lucid 10.04
- config.vm.box = "lucid64.couchbase-2.0.0.dp4.722"
- # config.vm.box_url = "http://files.vagrantup.com/lucid64.box"
- config.vm.box_url = "http://libcouchbase.s3.amazonaws.com/lucid64.couchbase-2.0.0.dp4.722.box"
+
+ config.vm.box = "lucid32"
+ config.vm.box_url = "http://files.vagrantup.com/lucid32.box"
+
+ #config.vm.box = "lucid64"
+ #config.vm.box_url = "http://files.vagrantup.com/lucid64.box"
+
+ # config.vm.box = "lucid64.couchbase-2.0.0.dp4.722"
+ # config.vm.box_url = "http://libcouchbase.s3.amazonaws.com/lucid64.couchbase-2.0.0.dp4.722.box"
# Set RAM to 1024mb
config.vm.customize ["modifyvm", :id, "--memory", 1024]
# Install Couchbase
- # config.vm.provision :shell, :inline => INSTALLER
+ config.vm.provision :shell, :inline => INSTALLER
+ # config.vm.provision :shell, :path => "couchbase.sh"
+
+ config.vm.network :hostonly, "#{ENV['COUCHBASE_HOST']}"
+ # TODO: port forwarding does not work yet (need to use hostonly network)
+ #
# Forward port for couchbase admin UI
# open http://localhost:8091
- config.vm.forward_port 8091, 8091
+ # config.vm.forward_port 8091, 8091
# Forward ports for couchbase client
# http://www.couchbase.com/docs/couchbase-manual-2.0/couchbase-network-ports.html
- config.vm.forward_port 8092, 8092
- config.vm.forward_port 11211, 11211
- config.vm.forward_port 11210, 11210
+ # config.vm.forward_port 8092, 8092
+ # config.vm.forward_port 11211, 11211
+ # config.vm.forward_port 11210, 11210
end
-# (stupid) Simple Couchbase Installer
+# Simple Couchbase Installer
INSTALLER = <<-SRC
echo wget #{VERSION}
wget -q #{MIRROR}/#{VERSION}
View
@@ -1,5 +1,5 @@
common: &common
- hostname: localhost
+ hostname: <%= ENV['COUCHBASE_HOST'] %>
port: 8091
username:
password:
View
@@ -0,0 +1,6 @@
+#!/bin/bash
+echo wget: couchbase-server-community_x86_2.0.0dp4r-730-rel.deb
+wget -q http://builds.hq.northscale.net/releases/couch/2.0.0-dev-preview-4.1/couchbase-server-community_x86_2.0.0dp4r-730-rel.deb
+echo install: couchbase-server-community_x86_2.0.0dp4r-730-rel.deb
+dpkg -i couchbase-server-community_x86_2.0.0dp4r-730-rel.deb
+echo fin.

0 comments on commit 55915ee

Please sign in to comment.