batch operations in nova-compute dockerfile

- batch yum operations to the build goes faster
- yum clean after install to remove yum cache and make
  final image smaller

Change-Id: I62246a6329a6b2ab6ab4fee6f72652a805f1e72e
This commit is contained in:
Lars Kellogg-Stedman 2014-10-13 17:11:38 -04:00
parent 8313834d16
commit 2f6e0e4eb7

View File

@ -3,20 +3,21 @@ MAINTAINER Steven Dake <sdake@redhat.com>
# broken out by operation - we don't need libvirt and
# 200 deps for libguestfs (?)
RUN yum -y install curl
RUN yum -y install iscsi-initiator-utils
RUN yum -y install iptables
RUN yum -y install iptables-ipv6
RUN yum -y install ipmitool
RUN yum -y install libvirt-python
RUN yum -y install python-libguestfs
RUN yum -y install openssh-clients
RUN yum -y install rsync
RUN yum -y install lvm2
RUN yum -y install python-cinderclient
RUN yum -y install genisoimage
RUN yum -y install bridge-utils
RUN yum -y install openstack-nova-compute
RUN yum -y install curl \
iscsi-initiator-utils \
iptables \
iptables-ipv6 \
ipmitool \
libvirt-python \
python-libguestfs \
openssh-clients \
rsync \
lvm2 \
python-cinderclient \
genisoimage \
bridge-utils \
openstack-nova-compute \
; yum clean all
ADD ./start.sh /start.sh
CMD ["/start.sh"]