blueprint redis-base-image

Change-Id: I84e80f4d74ad651ea72cd9c469152ceef5f56ea8
This commit is contained in:
Conrad.Weidenkeller
2013-10-01 14:20:38 -05:00
committed by Conrad.Weidenkeller
parent c2318f2bb1
commit 9c7ea1cc89
5 changed files with 23 additions and 1 deletions

View File

@@ -0,0 +1 @@
Sets up a redis server install in the image.

View File

@@ -0,0 +1,9 @@
#!/bin/sh
# CONTEXT: GUEST during CONSTRUCTION as ROOT
# PURPOSE: Install controller base required packages
set -ex
yum -y install redis
service redis start

View File

@@ -0,0 +1 @@
Sets up a redis server install in the image.

View File

@@ -0,0 +1,11 @@
#!/bin/sh
# CONTEXT: GUEST during CONSTRUCTION as ROOT
# PURPOSE: Install controller base required packages
set -ex
export DEBIAN_FRONTEND=noninteractive
add-apt-repository ppa:rwky/redis -y
apt-get update
apt-get install -y redis-server

View File

@@ -47,7 +47,7 @@ function cmd_build_image() {
fi
SERVICE_TYPE=$1
VALID_SERVICES='mysql percona'
VALID_SERVICES='mysql percona redis'
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