4b792b9a43
Only the final image in a hierarchy should have the footer block. neutron-infoblox-ipam-agent image still has two footers because it inherits from the neutron-server image. We set the user to root at the beginning of that Dockerfile, so that headers and footers have the right context. Change-Id: I95e5bb5583be2a76e289749e8adfc303a4e7197a
19 lines
622 B
Django/Jinja
19 lines
622 B
Django/Jinja
FROM {{ namespace }}/{{ image_prefix }}neutron-server:{{ tag }}
|
|
{% block labels %}
|
|
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
|
|
{% endblock %}
|
|
|
|
# This image inherits from neutron-server image, which is also a leaf image,
|
|
# and therefore sets the user to neutron. Set the user to root, so that any
|
|
# headers or footers used have the right context.
|
|
USER root
|
|
|
|
{% block neutron_infoblox_ipam_agent_header %}{% endblock %}
|
|
|
|
{% import "macros.j2" as macros with context %}
|
|
|
|
{% block neutron_infoblox_ipam_agent_footer %}{% endblock %}
|
|
{% block footer %}{% endblock %}
|
|
|
|
USER neutron
|