Ironic From Source

This adds the source install for the ironic container as well as
allowing Ubuntu to build it.

Change-Id: Id57f9c1ec2efdbbee581be00f3eef71609b919d6
Partially-Implements: blueprint ironic-container
Partially-Implements: blueprint install-from-ubuntu
This commit is contained in:
Sam Yaple 2015-08-23 11:50:50 +00:00
parent 44aa4af5f5
commit e4e4bf07ff
2 changed files with 20 additions and 6 deletions

View File

@ -33,6 +33,11 @@ type = url
location = http://tarballs.openstack.org/horizon/horizon-master.tar.gz
dest_filename = horizon.tar
[ironic-base]
type = url
location = http://tarballs.openstack.org/ironic/ironic-master.tar.gz
dest_filename = ironic.tar
[keystone]
type = url
location = http://tarballs.openstack.org/keystone/keystone-master.tar.gz

View File

@ -22,7 +22,16 @@ RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
{% endif %}
{% elif install_type == 'source' %}
RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
&& /bin/false
ADD ironic.tar /
RUN ln -s /ironic-* /ironic
RUN cd /ironic \
&& useradd --user-group ironic \
&& pip install -r requirements.txt \
&& pip install --install-option="--install-scripts=/usr/bin" /ironic \
&& mkdir -p /etc/ironic /var/log/ironic /home/ironic \
&& cp -r /ironic/etc/* /etc/ironic/ \
&& chown -R ironic: /etc/ironic /var/log/ironic /home/ironic \
&& rm -rf /root/.cache
{% endif %}