Add designate-producer container

reference:
https://docs.openstack.org/designate/latest/contributor/architecture.html

Change-Id: Ia22128e5ce4a717612af658d63258e78e52176ad
This commit is contained in:
caowei 2017-11-16 19:03:45 +08:00
parent b53b0d93a9
commit 22e6130c5d
2 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,20 @@
FROM {{ namespace }}/{{ image_prefix }}designate-base:{{ tag }}
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
{% block designate_producer_header %}{% endblock %}
{% import "macros.j2" as macros with context %}
{% if install_type == 'binary' %}
{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
{% set designate_producer_packages = ['openstack-designate-producer'] %}
{% elif base_distro in ['debian', 'ubuntu'] %}
{% set designate_producer_packages = ['designate-producer'] %}
{% endif %}
{{ macros.install_packages(designate_producer_packages | customizable("packages")) }}
{% endif %}
{% block designate_producer_footer %}{% endblock %}
{% block footer %}{% endblock %}
USER designate

View File

@ -0,0 +1,3 @@
---
features:
- Add designate-producer image