summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorFam Zheng <famz@redhat.com>2016-09-21 11:49:20 +0800
committerFam Zheng <famz@redhat.com>2016-09-23 11:48:32 +0800
commita34ac8d472a36582e8aaf93688cee62b4cac4201 (patch)
tree5346131251bcf071e0ea908480d7149b24d17735 /tests
parent65a03dd6c6b89223154e48193044577387e05dc2 (diff)
downloadqemu-a34ac8d472a36582e8aaf93688cee62b4cac4201.tar.gz
qemu-a34ac8d472a36582e8aaf93688cee62b4cac4201.tar.bz2
qemu-a34ac8d472a36582e8aaf93688cee62b4cac4201.zip
docker: Generate /packages.txt in centos6 image
Put the list of package names in an environment, and output their package names to the target file in the end. Signed-off-by: Fam Zheng <famz@redhat.com> Message-Id: <1474429768-25027-2-git-send-email-famz@redhat.com> Reviewed-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/docker/dockerfiles/centos6.docker6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/docker/dockerfiles/centos6.docker b/tests/docker/dockerfiles/centos6.docker
index 8f4fe46379..34e0d3b91e 100644
--- a/tests/docker/dockerfiles/centos6.docker
+++ b/tests/docker/dockerfiles/centos6.docker
@@ -1,6 +1,8 @@
FROM centos:6
-RUN yum install -y \
+RUN yum install -y epel-release
+ENV PACKAGES libfdt-devel ccache \
tar git make gcc g++ \
zlib-devel glib2-devel SDL-devel pixman-devel \
epel-release
-RUN yum install -y libfdt-devel ccache
+RUN yum install -y $PACKAGES
+RUN rpm -q $PACKAGES | sort > /packages.txt