Docker image updates for integration tests. (#26054)

* Sort packages to install.
* Add python-argparse to centos6 docker image.
* Add gcc and python dev lib to docker images.
* Add python cryptography to docker images.
* Add coverage using pip instead of OS packages.
* Update old pip versions in docker images.
* Exclude */pyshared/* from coverage reporting.
This commit is contained in:
Matt Clay 2017-06-23 12:45:38 -07:00 committed by GitHub
commit 4530eea7f8
11 changed files with 33 additions and 22 deletions

View file

@ -13,6 +13,7 @@ RUN apt-get update -y && \
dpkg-dev \
fakeroot \
gawk \
gcc \
git \
iproute2 \
libffi-dev \
@ -24,7 +25,8 @@ RUN apt-get update -y && \
mysql-server \
openssh-client \
openssh-server \
python3-coverage \
python3-cryptography \
python3-dev \
python3-dbus \
python3-httplib2 \
python3-jinja2 \
@ -60,6 +62,6 @@ 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
VOLUME /sys/fs/cgroup /run/lock /run /tmp
RUN pip3 install junit-xml python3-keyczar
RUN pip3 install coverage junit-xml python3-keyczar
ENV container=docker
CMD ["/sbin/init"]