Add memcached image (required by Swift)

Co-Authored-By: Paul Bourke <paul.bourke@oracle.com>
Partially Implements: Blueprint swift-container

Change-Id: I9d732b120c6a6354fe450cfc3f00dd2469bb9265
This commit is contained in:
James McCarthy 2015-07-16 11:48:04 +01:00 committed by jamesmmccarthy
parent 2313303397
commit ffad0a13a0
10 changed files with 57 additions and 0 deletions

7
compose/memcached.yml Normal file
View File

@ -0,0 +1,7 @@
memcached:
image: kollaglue/centos-rdo-memcached:latest
name: memcached
restart: always
net: "host"
env_file:
- openstack.env

View File

@ -0,0 +1,10 @@
FROM %%KOLLA_NAMESPACE%%/%%KOLLA_PREFIX%%base:%%KOLLA_TAG%%
MAINTAINER Kolla Project (https://launchpad.net/kolla)
RUN yum -y install memcached && yum clean all
COPY start.sh /
COPY config-internal.sh config-external.sh /opt/kolla/
CMD ["/start.sh"]

View File

@ -0,0 +1 @@
../../../../tools/build-docker-image

View File

@ -0,0 +1 @@
../../../../docker/common/memcached/config-external.sh

View File

@ -0,0 +1 @@
../../../../docker/common/memcached/config-internal.sh

View File

@ -0,0 +1 @@
../../../common/memcached/start.sh

View File

@ -0,0 +1,10 @@
#!/bin/bash
SOURCE="/opt/kolla/memcached/memcached"
TARGET="/etc/sysconfig/memcached"
OWNER="swift"
if [[ -f "$SOURCE" ]]; then
cp $SOURCE $TARGET
chown ${OWNER}: $TARGET
chmod 0644 $TARGET
fi

View File

@ -0,0 +1,8 @@
#!/bin/bash
set -o errexit
CMD="/usr/bin/memcached"
ARGS="-u memcached -vv"
exec $CMD $ARGS

View File

@ -0,0 +1,14 @@
#!/bin/bash
set -o errexit
CMD="/usr/bin/memcached"
ARGS="-u memcached -vv"
# Loading common functions.
source /opt/kolla/kolla-common.sh
# Config-internal script exec out of this function, it does not return here.
set_configs
exec $CMD $ARGS

View File

@ -334,6 +334,10 @@ In order for each service to function, there is a minimum set of required variab
None
# Memcached
None
# Mongodb
None