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:
parent
2313303397
commit
ffad0a13a0
7
compose/memcached.yml
Normal file
7
compose/memcached.yml
Normal file
@ -0,0 +1,7 @@
|
||||
memcached:
|
||||
image: kollaglue/centos-rdo-memcached:latest
|
||||
name: memcached
|
||||
restart: always
|
||||
net: "host"
|
||||
env_file:
|
||||
- openstack.env
|
10
docker/centos/binary/memcached/Dockerfile
Normal file
10
docker/centos/binary/memcached/Dockerfile
Normal 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"]
|
1
docker/centos/binary/memcached/build
Symbolic link
1
docker/centos/binary/memcached/build
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../tools/build-docker-image
|
1
docker/centos/binary/memcached/config-external.sh
Symbolic link
1
docker/centos/binary/memcached/config-external.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../docker/common/memcached/config-external.sh
|
1
docker/centos/binary/memcached/config-internal.sh
Symbolic link
1
docker/centos/binary/memcached/config-internal.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../docker/common/memcached/config-internal.sh
|
1
docker/centos/binary/memcached/start.sh
Symbolic link
1
docker/centos/binary/memcached/start.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../common/memcached/start.sh
|
10
docker/common/memcached/config-external.sh
Executable file
10
docker/common/memcached/config-external.sh
Executable 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
|
8
docker/common/memcached/config-internal.sh
Executable file
8
docker/common/memcached/config-internal.sh
Executable file
@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -o errexit
|
||||
|
||||
CMD="/usr/bin/memcached"
|
||||
ARGS="-u memcached -vv"
|
||||
|
||||
exec $CMD $ARGS
|
14
docker/common/memcached/start.sh
Executable file
14
docker/common/memcached/start.sh
Executable 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
|
@ -334,6 +334,10 @@ In order for each service to function, there is a minimum set of required variab
|
||||
|
||||
None
|
||||
|
||||
# Memcached
|
||||
|
||||
None
|
||||
|
||||
# Mongodb
|
||||
|
||||
None
|
||||
|
Loading…
Reference in New Issue
Block a user