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:
19
scripts/files/elements/ubuntu-couchdb/install.d/10-couchdb
Executable file
19
scripts/files/elements/ubuntu-couchdb/install.d/10-couchdb
Executable 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
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user