4f903087e6
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
19 lines
651 B
Django/Jinja
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
|