kolla/docker/ironic/ironic-api/Dockerfile.j2
James Kirsch 9a02633faf Enable mod_wsgi in Ironic API and Inspector container
This patch modifies the Dockerfile for both the Ironic API and
Inspector so that the 'root' user executes the container setup scripts.
This enables the container httpd configuration script to execute.

Change-Id: I02b58ac571cd4eb3b9d4a814fe0cb907a3564e23
2020-08-19 16:11:46 -07:00

33 lines
1021 B
Django/Jinja

FROM {{ namespace }}/{{ image_prefix }}ironic-base:{{ tag }}
{% block labels %}
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
{% endblock %}
{% block ironic_api_header %}{% endblock %}
{% import "macros.j2" as macros with context %}
{% if install_type == 'binary' %}
{% if base_package_type == 'rpm' %}
{% set ironic_api_packages = [
'openstack-ironic-api'
] %}
{% elif base_package_type == 'deb' %}
{% set ironic_api_packages = [
'ironic-api'
] %}
{% endif %}
{{ macros.install_packages(ironic_api_packages | customizable("packages")) }}
{% elif install_type == 'source' %}
{% set ironic_api_packages = [
] %}
{{ macros.install_packages(ironic_api_packages | customizable("packages")) }}
{% endif %}
COPY extend_start.sh /usr/local/bin/kolla_ironic_extend_start
RUN chmod 755 /usr/local/bin/kolla_ironic_extend_start
{% block ironic_api_footer %}{% endblock %}
{% block footer %}{% endblock %}