Add support for single instance Couchbase
Add scripts for creating Couchbase image and groups of tests to check Couchbase single instance creation. Change-Id: I97ac6ebdbe6cdd0f13e07e0c4ed644cf0033295a Implements: blueprint couchbase-single-instance-diskimage
This commit is contained in:
parent
0ad6b9dd3b
commit
6f85df7ec1
8
scripts/files/elements/ubuntu-couchbase/install.d/10-couchbase
Executable file
8
scripts/files/elements/ubuntu-couchbase/install.d/10-couchbase
Executable file
@ -0,0 +1,8 @@
|
||||
set -e
|
||||
set -o xtrace
|
||||
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
apt-get install curl
|
||||
apt-get install libssl0.9.8
|
||||
curl -O http://packages.couchbase.com/releases/2.2.0/couchbase-server-community_2.2.0_x86_64.deb
|
||||
INSTALL_DONT_START_SERVER=1 dpkg -i couchbase-server-community_2.2.0_x86_64.deb
|
@ -47,7 +47,7 @@ function cmd_build_image() {
|
||||
fi
|
||||
SERVICE_TYPE=$1
|
||||
|
||||
VALID_SERVICES='mysql percona redis cassandra'
|
||||
VALID_SERVICES='mysql percona redis cassandra couchbase'
|
||||
if [ `expr "$VALID_SERVICES" : ".*$SERVICE"` -eq 0 ] ; then
|
||||
exclaim "You did not pass in a valid image type. Valid types are:" $VALID_SERVICES
|
||||
exit 1
|
||||
|
@ -294,6 +294,9 @@ function cmd_set_datastore() {
|
||||
elif [ "$DATASTORE_TYPE" == "cassandra" ]; then
|
||||
PACKAGES=${PACKAGES:-"cassandra"}
|
||||
VERSION="-2.0.5"
|
||||
elif [ "$DATASTORE_TYPE" == "couchbase" ]; then
|
||||
PACKAGES=${PACKAGES:-"couchbase-server"}
|
||||
VERSION="-2.2.0"
|
||||
else
|
||||
echo "Unrecognized datastore type. ($DATASTORE_TYPE)"
|
||||
exit 1
|
||||
|
@ -226,6 +226,15 @@ def import_tests():
|
||||
proboscis.register(groups=["cassandra"],
|
||||
depends_on_groups=cassandra_groups)
|
||||
|
||||
couchbase_groups = [
|
||||
"services.initialize",
|
||||
flavors.GROUP,
|
||||
versions.GROUP,
|
||||
instances.GROUP_START_SIMPLE,
|
||||
]
|
||||
proboscis.register(groups=["couchbase"],
|
||||
depends_on_groups=couchbase_groups)
|
||||
|
||||
|
||||
def run_main(test_importer):
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user