435b21b90d
Change-Id: If4be00b937e14ec93443dcb7249cf17099d57cbe Closes-Bug: #1569417
25 lines
542 B
Django/Jinja
25 lines
542 B
Django/Jinja
FROM {{ namespace }}/{{ image_prefix }}base:{{ tag }}
|
|
MAINTAINER {{ maintainer }}
|
|
|
|
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
|
|
|
{% set user = 'memcached' %}
|
|
RUN yum -y install \
|
|
memcached \
|
|
&& yum clean all \
|
|
&& usermod -a -G kolla {{ user }}
|
|
|
|
{% elif base_distro in ['ubuntu', 'debian'] %}
|
|
|
|
{% set user = 'memcache' %}
|
|
RUN apt-get -y install --no-install-recommends \
|
|
memcached \
|
|
&& apt-get clean \
|
|
&& usermod -a -G kolla {{ user }}
|
|
|
|
{% endif %}
|
|
|
|
{{ include_footer }}
|
|
|
|
USER {{ user }}
|