Merge lp:~zorba-coders/zorba/install_couchbase_update into lp:zorba/couchbase-module

Proposed by Chris Hillery on 2013-06-24
Status: Merged
Merged at revision: 45
Proposed branch: lp:~zorba-coders/zorba/install_couchbase_update
Merge into: lp:zorba/couchbase-module
Diff against target: 71 lines (+21/-20)
1 file modified
install_couchbase/install.cmake (+21/-20)
To merge this branch: bzr merge lp:~zorba-coders/zorba/install_couchbase_update
Reviewer Review Type Date Requested Status
Juan Zacarias 2013-06-24 Approve on 2013-07-10
Chris Hillery Approve on 2013-06-24
Review via email: mp+171023@code.launchpad.net

Commit message

Updated install script for Couchbase 2.0.1 and Ubuntu 12.04; some cleanup

To post a comment you must log in.
Chris Hillery (ceejatec) :
review: Approve
45. By Chris Hillery on 2013-06-24

Switched back to community version; more cleanup

Juan Zacarias (juan457) :
review: Approve
Zorba Build Bot (zorba-buildbot) wrote :
Zorba Build Bot (zorba-buildbot) wrote :

Validation queue succeeded - proposal merged!

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'install_couchbase/install.cmake'
2--- install_couchbase/install.cmake 2012-12-18 09:14:39 +0000
3+++ install_couchbase/install.cmake 2013-06-24 07:45:30 +0000
4@@ -30,21 +30,22 @@
5 ENDIF(SKIP_COUCHBASE_DOWNLOAD)
6
7 #Couchbase Configure
8- #Check what version of couchbase server to download
9- IF(system)
10- SET(DOWNLOAD_PATH "http://packages.couchbase.com/releases/2.0.0-beta")
11- IF (${system} STREQUAL "ubuntu32")
12- SET(COUCHBASE_DEB_NAME "couchbase-server-community_x86_2.0.0-beta.deb")
13- ELSE (${system} STREQUAL "ubuntu32")
14- IF (${system} STREQUAL "ubuntu64")
15- SET(COUCHBASE_DEB_NAME "couchbase-server-community_x86_64_2.0.0-beta.deb")
16- ELSE (${system} STREQUAL "ubuntu64")
17- MESSAGE(FATAL_ERROR "Invalid value for system (available values ubuntu32 and ubuntu64")
18- ENDIF (${system} STREQUAL "ubuntu64")
19- ENDIF (${system} STREQUAL "ubuntu32")
20- ELSE(system)
21- MESSAGE(FATAL_ERROR "the variable 'system' must be set")
22- ENDIF(system)
23+#Check what version of couchbase server to download
24+SET (COUCHBASE_VER "2.0.1")
25+IF(system)
26+ SET(DOWNLOAD_PATH "http://packages.couchbase.com/releases/${COUCHBASE_VER}")
27+ IF (${system} STREQUAL "ubuntu32")
28+ SET(COUCHBASE_DEB_NAME
29+ "couchbase-server-community_x86_${COUCHBASE_VER}.deb")
30+ ELSEIF (${system} STREQUAL "ubuntu64")
31+ SET(COUCHBASE_DEB_NAME
32+ "couchbase-server-community_x86_64_${COUCHBASE_VER}.deb")
33+ ELSE (${system} STREQUAL "ubuntu32")
34+ MESSAGE(FATAL_ERROR "Invalid value for system (available values ubuntu32 and ubuntu64")
35+ ENDIF (${system} STREQUAL "ubuntu32")
36+ELSE(system)
37+ MESSAGE(FATAL_ERROR "the variable 'system' must be set")
38+ENDIF(system)
39
40 #Couchbase Download
41 IF(COUCHBASE_DOWNLOAD)
42@@ -59,16 +60,16 @@
43
44 #Couchbase Install
45 MESSAGE(STATUS "Installing Couchbase Server...")
46+EXECUTE_PROCESS(COMMAND sudo apt-get install libssl0.9.8)
47 EXECUTE_PROCESS(COMMAND sudo dpkg -i ${COUCHBASE_DEB_NAME})
48-EXECUTE_PROCESS(COMMAND sudo apt-get install -f)
49
50 #Couchbase C SDK Install
51 MESSAGE(STATUS "Installing Couchbase C SDK...")
52-EXECUTE_PROCESS(COMMAND sudo "${WGET}" -O/etc/apt/sources.list.d/couchbase.list http://packages.couchbase.com/ubuntu/couchbase-ubuntu1110.list)
53+EXECUTE_PROCESS(COMMAND sudo "${WGET}" -O/etc/apt/sources.list.d/couchbase.list http://packages.couchbase.com/ubuntu/couchbase-ubuntu1204.list)
54 EXECUTE_PROCESS(COMMAND "${WGET}" -O- http://packages.couchbase.com/ubuntu/couchbase.key
55 COMMAND sudo apt-key add -)
56-EXECUTE_PROCESS(COMMAND apt-get update)
57-EXECUTE_PROCESS(COMMAND apt-get install libcouchbase2 libcouchbase-dev)
58+EXECUTE_PROCESS(COMMAND sudo apt-get update)
59+EXECUTE_PROCESS(COMMAND sudo apt-get install libcouchbase2 libcouchbase-dev)
60
61 #Couchbase Setup
62 MESSAGE(STATUS "Starting Setup...")
63@@ -76,7 +77,7 @@
64 EXECUTE_PROCESS(COMMAND /opt/couchbase/bin/couchbase-cli node-init -c 127.0.0.1 --node-init-data-path=/opt/couchbase/var/lib/couchbase/data/ -u admin -p password)
65 MESSAGE(STATUS "Running cluster-init...")
66 EXECUTE_PROCESS(COMMAND /opt/couchbase/bin/couchbase-cli cluster-init -c 127.0.0.1 --cluster-init-ramsize=2048 -u admin -p password)
67-MESSAGE(STATUS "Running create-bucket...")
68+MESSAGE(STATUS "Running bucket-create...")
69 EXECUTE_PROCESS(COMMAND /opt/couchbase/bin/couchbase-cli bucket-create -c 127.0.0.1 --bucket=default --bucket-type=couchbase --bucket-port=11211 --bucket-ramsize=200 --bucket-replica=1 -u admin -p password)
70 MESSAGE(STATUS "Couchbase Server Configure for testing, Username=admin Password=password bucket-name=default")
71 EXECUTE_PROCESS(COMMAND rm ${COUCHBASE_DEB_NAME})

Subscribers

People subscribed via source and target branches

to all changes: