diff --git a/scripts/files/elements/ubuntu-couchbase/install.d/10-couchbase b/scripts/files/elements/ubuntu-couchbase/install.d/10-couchbase new file mode 100755 index 00000000..27597172 --- /dev/null +++ b/scripts/files/elements/ubuntu-couchbase/install.d/10-couchbase @@ -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 diff --git a/scripts/functions_qemu b/scripts/functions_qemu index cf8391db..81e23449 100644 --- a/scripts/functions_qemu +++ b/scripts/functions_qemu @@ -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 diff --git a/scripts/redstack b/scripts/redstack index 2af35311..e4ed9a10 100755 --- a/scripts/redstack +++ b/scripts/redstack @@ -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 diff --git a/tests/integration/int_tests.py b/tests/integration/int_tests.py index aed11649..17eb9e57 100644 --- a/tests/integration/int_tests.py +++ b/tests/integration/int_tests.py @@ -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):