kolla/docker/redis/redis-sentinel/Dockerfile.j2
Mathias Ewald 4f903087e6 Add Redis Sentinel
Introduce base container for redis

Rebase the existing redis container on the new base container

Provide a container for redis-sentinel to create a highly available cluster

Change-Id: I683f02930a870c01dbc71c84060a65c72a8e568e
2017-07-24 13:29:20 +00:00

19 lines
651 B
Django/Jinja

FROM {{ namespace }}/{{ image_prefix }}redis-base:{{ tag }}
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
{% block redis_sentinel_header %}{% endblock %}
{% import "macros.j2" as macros with context %}
{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
{% set redis_sentinel_packages = ['redis'] %}
{% elif base_distro in ['debian', 'ubuntu'] %}
{% set redis_sentinel_packages = ['redis-sentinel'] %}
{% endif %}
{{ macros.install_packages(redis_sentinel_packages | customizable("packages")) }}
{% block redis_sentinel_footer %}{% endblock %}
{% block footer %}{% endblock %}
USER redis