blueprint redis-base-image
Change-Id: I84e80f4d74ad651ea72cd9c469152ceef5f56ea8
This commit is contained in:
committed by
Conrad.Weidenkeller
parent
c2318f2bb1
commit
9c7ea1cc89
1
scripts/files/elements/fedora-redis/README.md
Normal file
1
scripts/files/elements/fedora-redis/README.md
Normal file
@@ -0,0 +1 @@
|
||||
Sets up a redis server install in the image.
|
||||
9
scripts/files/elements/fedora-redis/install.d/10-redis
Executable file
9
scripts/files/elements/fedora-redis/install.d/10-redis
Executable 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
|
||||
1
scripts/files/elements/ubuntu-redis/README.md
Normal file
1
scripts/files/elements/ubuntu-redis/README.md
Normal file
@@ -0,0 +1 @@
|
||||
Sets up a redis server install in the image.
|
||||
11
scripts/files/elements/ubuntu-redis/install.d/10-redis
Executable file
11
scripts/files/elements/ubuntu-redis/install.d/10-redis
Executable 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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user