e21aeb5ae9
As we have one type of images now some RUN calls could be merged so we will have less layers in resulting images. Change-Id: I5178c58fbd8c65efe825dc249c0f1368ef0fe8e0
34 lines
1.3 KiB
Django/Jinja
34 lines
1.3 KiB
Django/Jinja
FROM {{ namespace }}/{{ image_prefix }}openstack-base:{{ tag }}
|
|
{% block labels %}
|
|
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
|
|
{% endblock %}
|
|
|
|
{% block designate_base_header %}{% endblock %}
|
|
|
|
{% import "macros.j2" as macros with context %}
|
|
|
|
{{ macros.configure_user(name='designate') }}
|
|
|
|
{% set designate_base_pip_packages = [
|
|
'/designate'
|
|
] %}
|
|
|
|
ADD designate-base-archive /designate-base-source
|
|
|
|
COPY designate_sudoers /etc/sudoers.d/kolla_designate_sudoers
|
|
COPY extend_start.sh /usr/local/bin/kolla_extend_start
|
|
|
|
RUN ln -s designate-base-source/* designate \
|
|
&& {{ macros.install_pip(designate_base_pip_packages | customizable("pip_packages")) }} \
|
|
&& mkdir -p /etc/designate \
|
|
&& cp -r /designate/etc/designate/* /etc/designate/ \
|
|
&& mv /etc/designate/rootwrap.conf.sample /etc/designate/rootwrap.conf \
|
|
&& chown -R designate: /etc/designate \
|
|
&& sed -i 's|^exec_dirs.*|exec_dirs=/var/lib/kolla/venv/bin,/sbin,/usr/sbin,/bin,/usr/bin,/usr/local/bin,/usr/local/sbin|g' /etc/designate/rootwrap.conf \
|
|
&& chmod 750 /etc/sudoers.d \
|
|
&& chmod 640 /etc/sudoers.d/kolla_designate_sudoers \
|
|
&& touch /usr/local/bin/kolla_designate_extend_start \
|
|
&& chmod 644 /usr/local/bin/kolla_extend_start /usr/local/bin/kolla_designate_extend_start
|
|
|
|
{% block designate_base_footer %}{% endblock %}
|