Create DIB elements for Apache CouchDB on Ubuntu

Create the disk-image-builder elements for installing
Apache CouchDB on Ubuntu.

Partially Implements: blueprint couchdb-plugin-trove
Change-Id: I964ba3a71c10b8513bb9d2eace7394744f642d57
This commit is contained in:
Mariam John
2014-11-24 15:07:03 -08:00
parent ffd8d3d7a4
commit 879c99f75a
3 changed files with 23 additions and 1 deletions

View File

@@ -0,0 +1,19 @@
#!/bin/bash
set -e
set -o xtrace
export DEBIAN_FRONTEND=noninteractive
# install the ppa-finding tool for ubuntu 12.0.4 release
apt-get install -y python-software-properties
add-apt-repository -y ppa:couchdb/stable
# update cached list of packages
apt-get update -y
# remove any existing couchdb binaries
apt-get remove -yf couchdb couchdb-bin couchdb-common
# install couchdb
apt-get install -yV couchdb
# install curl to provide a way to interact with CouchDB
# over HTTP REST API
apt-get install -qy curl

View File

@@ -51,7 +51,7 @@ function build_guest_image() {
exit 1
fi
SERVICE_TYPE=$1
VALID_SERVICES='mysql percona redis cassandra couchbase mongodb postgresql'
VALID_SERVICES='mysql percona redis cassandra couchbase mongodb postgresql couchdb'
if ! [[ " $VALID_SERVICES " =~ " $SERVICE_TYPE " ]]; then
exclaim "You did not pass in a valid image type. Valid types are:" $VALID_SERVICES
exit 1

View File

@@ -307,6 +307,9 @@ function cmd_set_datastore() {
elif [ "$DATASTORE_TYPE" == "postgresql" ]; then
PACKAGES=${PACKAGES:-"postgresql-9.1"}
VERSION="9.1"
elif [ "$DATASTORE_TYPE" == "couchdb" ]; then
PACKAGES=${PACKAGES:-"couchdb"}
VERSION="1.6.1"
else
echo "Unrecognized datastore type. ($DATASTORE_TYPE)"
exit 1