e25c12fee6
Change-Id: Ib6b095341c8d63b365d3575478b4dafa69720b63 Closes-Bug: #1534900
31 lines
684 B
Django/Jinja
31 lines
684 B
Django/Jinja
FROM {{ namespace }}/{{ image_prefix }}ironic-base:{{ tag }}
|
|
MAINTAINER {{ maintainer }}
|
|
|
|
{% if install_type == 'binary' %}
|
|
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
|
|
|
RUN yum -y install openstack-ironic-conductor \
|
|
&& yum clean all
|
|
|
|
{% endif %}
|
|
{% elif install_type == 'source' %}
|
|
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
|
|
|
RUN yum -y install ipmitool \
|
|
&& yum clean all
|
|
|
|
{% endif %}
|
|
{% if base_distro in ['ubuntu', 'debian'] %}
|
|
|
|
RUN apt-get install -y --no-install-recommends \
|
|
qemu-utils \
|
|
ipmitool \
|
|
&& apt-get clean
|
|
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
{{ include_footer }}
|
|
|
|
USER ironic
|