summaryrefslogtreecommitdiffstats
path: root/tests/docker
diff options
context:
space:
mode:
authorFam Zheng2016-09-21 05:49:22 +0200
committerFam Zheng2016-09-23 05:48:32 +0200
commit5008fc787b9d923f937c71d3dbe0d8ef88875c91 (patch)
tree1f2cdb90fc61df00d0568d2faa123374959e614a /tests/docker
parentdocker: Generate /packages.txt in fedora image (diff)
downloadqemu-5008fc787b9d923f937c71d3dbe0d8ef88875c91.tar.gz
qemu-5008fc787b9d923f937c71d3dbe0d8ef88875c91.tar.xz
qemu-5008fc787b9d923f937c71d3dbe0d8ef88875c91.zip
docker: Generate /packages.txt in ubuntu 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-4-git-send-email-famz@redhat.com> Reviewed-by: Daniel. P. Berrange <berrange@redhat.com>
Diffstat (limited to 'tests/docker')
-rw-r--r--tests/docker/dockerfiles/ubuntu.docker4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/docker/dockerfiles/ubuntu.docker b/tests/docker/dockerfiles/ubuntu.docker
index a8b88c318c..a360a050a2 100644
--- a/tests/docker/dockerfiles/ubuntu.docker
+++ b/tests/docker/dockerfiles/ubuntu.docker
@@ -2,10 +2,12 @@ FROM ubuntu:14.04
RUN echo "deb http://archive.ubuntu.com/ubuntu/ trusty universe multiverse" >> \
/etc/apt/sources.list
RUN apt-get update
-RUN apt-get -y install flex bison \
+ENV PACKAGES flex bison \
libusb-1.0-0-dev libiscsi-dev librados-dev libncurses5-dev \
libseccomp-dev libgnutls-dev libssh2-1-dev libspice-server-dev \
libspice-protocol-dev libnss3-dev libfdt-dev \
libgtk-3-dev libvte-2.90-dev libsdl1.2-dev libpng12-dev libpixman-1-dev \
git make ccache python-yaml gcc clang sparse
+RUN apt-get -y install $PACKAGES
+RUN dpkg -l $PACKAGES | sort > /packages.txt
ENV FEATURES clang pyyaml