861f55fbfd
Change-Id: I9692dda817ef134d647247431565e1b58cf9da41
30 lines
1.1 KiB
Django/Jinja
30 lines
1.1 KiB
Django/Jinja
FROM {{ namespace }}/{{ image_prefix }}designate-base:{{ tag }}
|
|
{% block labels %}
|
|
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
|
|
{% endblock %}
|
|
|
|
{% block designate_backend_bind9_header %}{% endblock %}
|
|
|
|
{% import "macros.j2" as macros with context %}
|
|
|
|
{% if base_package_type == 'rpm' %}
|
|
{% set designate_backend_bind9_packages = ['bind'] %}
|
|
|
|
{{ macros.install_packages(designate_backend_bind9_packages | customizable("packages")) }}
|
|
|
|
{% elif base_package_type == 'deb' %}
|
|
{% set designate_backend_bind9_packages = ['bind9'] %}
|
|
|
|
{{ macros.install_packages(designate_backend_bind9_packages | customizable("packages")) }}
|
|
|
|
{% endif %}
|
|
|
|
{% set designate_backend_bind_name = 'bind' if base_package_type == 'deb' else 'named' %}
|
|
|
|
RUN mkdir -p /var/lib/kolla/ /var/lib/{{ designate_backend_bind_name }}/ /run/{{ designate_backend_bind_name }} \
|
|
&& chown -R root: /var/lib/{{ designate_backend_bind_name }} /run/{{ designate_backend_bind_name }} \
|
|
&& chmod 755 /run/{{ designate_backend_bind_name }}
|
|
|
|
{% block designate_backend_bind9_footer %}{% endblock %}
|
|
{% block footer %}{% endblock %}
|