From 62e6f6b88541453bc73a9e96bf0f5e9d9268d7fb Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Mon, 13 Jun 2016 15:06:51 -0700 Subject: [PATCH] Add junit-xml to docker images. --- test/utils/docker/centos6/Dockerfile | 1 + test/utils/docker/centos7/Dockerfile | 1 + test/utils/docker/fedora-rawhide/Dockerfile | 1 + test/utils/docker/fedora23/Dockerfile | 1 + test/utils/docker/opensuseleap/Dockerfile | 1 + test/utils/docker/ubuntu1204/Dockerfile | 1 + test/utils/docker/ubuntu1404/Dockerfile | 1 + test/utils/docker/ubuntu1604/Dockerfile | 2 ++ 8 files changed, 9 insertions(+) diff --git a/test/utils/docker/centos6/Dockerfile b/test/utils/docker/centos6/Dockerfile index bfdc4190239..3f624d2d7fd 100644 --- a/test/utils/docker/centos6/Dockerfile +++ b/test/utils/docker/centos6/Dockerfile @@ -49,5 +49,6 @@ RUN ssh-keygen -q -t rsa1 -N '' -f /etc/ssh/ssh_host_key && \ ssh-keygen -q -t rsa -N '' -f /root/.ssh/id_rsa && \ cp /root/.ssh/id_rsa.pub /root/.ssh/authorized_keys && \ for key in /etc/ssh/ssh_host_*_key.pub; do echo "localhost $(cat ${key})" >> /root/.ssh/known_hosts; done +RUN pip install junit-xml ENV container=docker CMD ["/sbin/init"] diff --git a/test/utils/docker/centos7/Dockerfile b/test/utils/docker/centos7/Dockerfile index c0b9f3ce280..d61a6cd46a1 100644 --- a/test/utils/docker/centos7/Dockerfile +++ b/test/utils/docker/centos7/Dockerfile @@ -52,5 +52,6 @@ RUN ssh-keygen -q -t rsa1 -N '' -f /etc/ssh/ssh_host_key && \ ssh-keygen -q -t rsa -N '' -f /root/.ssh/id_rsa && \ cp /root/.ssh/id_rsa.pub /root/.ssh/authorized_keys && \ for key in /etc/ssh/ssh_host_*_key.pub; do echo "localhost $(cat ${key})" >> /root/.ssh/known_hosts; done +RUN pip install junit-xml ENV container=docker CMD ["/usr/sbin/init"] diff --git a/test/utils/docker/fedora-rawhide/Dockerfile b/test/utils/docker/fedora-rawhide/Dockerfile index 67f8190a859..8e5fd624afd 100644 --- a/test/utils/docker/fedora-rawhide/Dockerfile +++ b/test/utils/docker/fedora-rawhide/Dockerfile @@ -57,5 +57,6 @@ RUN ssh-keygen -q -t dsa -N '' -f /etc/ssh/ssh_host_dsa_key && \ ssh-keygen -q -t rsa -N '' -f /root/.ssh/id_rsa && \ cp /root/.ssh/id_rsa.pub /root/.ssh/authorized_keys && \ for key in /etc/ssh/ssh_host_*_key.pub; do echo "localhost $(cat ${key})" >> /root/.ssh/known_hosts; done +RUN pip install junit-xml ENV container=docker CMD ["/usr/sbin/init"] diff --git a/test/utils/docker/fedora23/Dockerfile b/test/utils/docker/fedora23/Dockerfile index dd0e0fc8561..9d1ebf0b551 100644 --- a/test/utils/docker/fedora23/Dockerfile +++ b/test/utils/docker/fedora23/Dockerfile @@ -58,5 +58,6 @@ RUN ssh-keygen -q -t dsa -N '' -f /etc/ssh/ssh_host_dsa_key && \ ssh-keygen -q -t rsa -N '' -f /root/.ssh/id_rsa && \ cp /root/.ssh/id_rsa.pub /root/.ssh/authorized_keys && \ for key in /etc/ssh/ssh_host_*_key.pub; do echo "localhost $(cat ${key})" >> /root/.ssh/known_hosts; done +RUN pip install junit-xml ENV container=docker CMD ["/usr/sbin/init"] diff --git a/test/utils/docker/opensuseleap/Dockerfile b/test/utils/docker/opensuseleap/Dockerfile index a0aaec0c1dd..86905c11af5 100644 --- a/test/utils/docker/opensuseleap/Dockerfile +++ b/test/utils/docker/opensuseleap/Dockerfile @@ -67,5 +67,6 @@ RUN ssh-keygen -q -t rsa1 -N '' -f /etc/ssh/ssh_host_key && \ for key in /etc/ssh/ssh_host_*_key.pub; do echo "localhost $(cat ${key})" >> /root/.ssh/known_hosts; done # explicitly enable the service, opensuse default to disabled services RUN systemctl enable sshd.service +RUN pip install junit-xml ENV container=docker CMD ["/sbin/init"] diff --git a/test/utils/docker/ubuntu1204/Dockerfile b/test/utils/docker/ubuntu1204/Dockerfile index ce99aed987e..bc7a392eb0b 100644 --- a/test/utils/docker/ubuntu1204/Dockerfile +++ b/test/utils/docker/ubuntu1204/Dockerfile @@ -81,5 +81,6 @@ RUN locale-gen en_US.UTF-8 RUN ssh-keygen -q -t rsa -N '' -f /root/.ssh/id_rsa && \ cp /root/.ssh/id_rsa.pub /root/.ssh/authorized_keys && \ for key in /etc/ssh/ssh_host_*_key.pub; do echo "localhost $(cat ${key})" >> /root/.ssh/known_hosts; done +RUN pip install junit-xml ENV container docker CMD ["/sbin/init"] diff --git a/test/utils/docker/ubuntu1404/Dockerfile b/test/utils/docker/ubuntu1404/Dockerfile index 69a1eae01cd..4f1083764bf 100644 --- a/test/utils/docker/ubuntu1404/Dockerfile +++ b/test/utils/docker/ubuntu1404/Dockerfile @@ -78,5 +78,6 @@ RUN locale-gen en_US.UTF-8 RUN ssh-keygen -q -t rsa -N '' -f /root/.ssh/id_rsa && \ cp /root/.ssh/id_rsa.pub /root/.ssh/authorized_keys && \ for key in /etc/ssh/ssh_host_*_key.pub; do echo "localhost $(cat ${key})" >> /root/.ssh/known_hosts; done +RUN pip install junit-xml ENV container docker CMD ["/sbin/init"] diff --git a/test/utils/docker/ubuntu1604/Dockerfile b/test/utils/docker/ubuntu1604/Dockerfile index 92426111bcd..7bb2761fb6a 100644 --- a/test/utils/docker/ubuntu1604/Dockerfile +++ b/test/utils/docker/ubuntu1604/Dockerfile @@ -53,6 +53,7 @@ RUN apt-get install -y \ python-pip \ python-setuptools \ python-virtualenv \ + python-wheel \ virtualenv \ python-yaml @@ -68,4 +69,5 @@ RUN mkdir /etc/ansible/ RUN /bin/echo -e "[local]\nlocalhost ansible_connection=local" > /etc/ansible/hosts VOLUME /sys/fs/cgroup /run/lock /run /tmp +RUN pip install junit-xml CMD ["/sbin/init"]