kolla/docker/neutron/neutron-infoblox-ipam-agent/Dockerfile.j2
Mark Goddard 4b792b9a43 Remove footer block from intermediate images
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
2020-11-20 12:20:21 +00:00

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