30d29b6f3d
Rely on packagers for managing dependencies. openstack-ironic-common now pulls the required packages: https://github.com/openstack-packages/ironic/blob/rpm-master/openstack-ironic.spec TrivialFix Change-Id: Ib1d18c4e50a8786c29bf88d9b661905eb8b657c5
25 lines
785 B
Django/Jinja
25 lines
785 B
Django/Jinja
FROM {{ namespace }}/{{ image_prefix }}openstack-base:{{ tag }}
|
|
MAINTAINER {{ maintainer }}
|
|
|
|
{% if install_type == 'binary' %}
|
|
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
|
|
|
RUN yum -y install \
|
|
openstack-ironic-common \
|
|
&& yum clean all
|
|
|
|
{% endif %}
|
|
{% elif install_type == 'source' %}
|
|
|
|
ADD ironic-base-archive /ironic-base-source
|
|
RUN ln -s ironic-base-source/* ironic \
|
|
&& useradd --user-group ironic \
|
|
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /ironic \
|
|
&& mkdir -p /etc/ironic /var/log/ironic /home/ironic \
|
|
&& cp -r /ironic/etc/ironic/* /etc/ironic/ \
|
|
&& chown -R ironic: /etc/ironic /var/log/ironic /home/ironic
|
|
|
|
{% endif %}
|
|
|
|
RUN usermod -a -G kolla ironic
|