From 2f6e0e4eb78ad4564d988dc25e8d5ea323da18c9 Mon Sep 17 00:00:00 2001
From: Lars Kellogg-Stedman <lars@redhat.com>
Date: Mon, 13 Oct 2014 17:11:38 -0400
Subject: [PATCH] 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
---
 docker/nova-compute/nova-compute/Dockerfile | 29 +++++++++++----------
 1 file changed, 15 insertions(+), 14 deletions(-)

diff --git a/docker/nova-compute/nova-compute/Dockerfile b/docker/nova-compute/nova-compute/Dockerfile
index 3f14566b4e..2b519a3433 100644
--- a/docker/nova-compute/nova-compute/Dockerfile
+++ b/docker/nova-compute/nova-compute/Dockerfile
@@ -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"]