From 28f820fc5e18de76eccf252d761804015b3e58b1 Mon Sep 17 00:00:00 2001 From: Sam Yaple Date: Mon, 17 Aug 2015 07:03:25 +0000 Subject: [PATCH] Add memcached to docker_templates Change-Id: I1f3f6f3bcc5de5baf5a1ebddf18f7d7c70963b1b Partially-Implements: blueprint dockerfile-template --- docker_templates/memcached/Dockerfile.j2 | 19 +++++++++++++++++++ docker_templates/memcached/config-external.sh | 1 + docker_templates/memcached/start.sh | 1 + 3 files changed, 21 insertions(+) create mode 100644 docker_templates/memcached/Dockerfile.j2 create mode 120000 docker_templates/memcached/config-external.sh create mode 120000 docker_templates/memcached/start.sh diff --git a/docker_templates/memcached/Dockerfile.j2 b/docker_templates/memcached/Dockerfile.j2 new file mode 100644 index 0000000000..5676232f59 --- /dev/null +++ b/docker_templates/memcached/Dockerfile.j2 @@ -0,0 +1,19 @@ +FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-base:{{ tag }} +MAINTAINER Kolla Project (https://launchpad.net/kolla) + +{% if base_distro in ['fedora', 'centos', 'oraclelinux'] %} + +RUN yum -y install memcached + && yum clean all + +{% elif base_distro in ['ubuntu', 'debian'] %} + +RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \ + && /bin/false + +{% endif %} + +COPY start.sh / +COPY config-external.sh /opt/kolla/ + +CMD ["/start.sh"] diff --git a/docker_templates/memcached/config-external.sh b/docker_templates/memcached/config-external.sh new file mode 120000 index 0000000000..b6b337370d --- /dev/null +++ b/docker_templates/memcached/config-external.sh @@ -0,0 +1 @@ +../../docker/common/memcached/config-external.sh \ No newline at end of file diff --git a/docker_templates/memcached/start.sh b/docker_templates/memcached/start.sh new file mode 120000 index 0000000000..c696258a2b --- /dev/null +++ b/docker_templates/memcached/start.sh @@ -0,0 +1 @@ +../../docker/common/memcached/start.sh \ No newline at end of file