mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
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:
@@ -17,6 +17,7 @@ RUN dnf clean all && \
|
||||
dbus-python \
|
||||
file \
|
||||
findutils \
|
||||
gcc \
|
||||
git \
|
||||
glibc-locale-source \
|
||||
iproute \
|
||||
@@ -30,8 +31,8 @@ RUN dnf clean all && \
|
||||
openssh-server \
|
||||
openssl-devel \
|
||||
procps \
|
||||
python2-dnf \
|
||||
python-coverage \
|
||||
python-cryptography \
|
||||
python-devel \
|
||||
python-httplib2 \
|
||||
python-jinja2 \
|
||||
python-keyczar \
|
||||
@@ -43,6 +44,7 @@ RUN dnf clean all && \
|
||||
python-pip \
|
||||
python-setuptools \
|
||||
python-virtualenv \
|
||||
python2-dnf \
|
||||
PyYAML \
|
||||
rpm-build \
|
||||
rubygems \
|
||||
@@ -66,6 +68,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
|
||||
RUN pip install coverage junit-xml
|
||||
ENV container=docker
|
||||
CMD ["/usr/sbin/init"]
|
||||
|
||||
Reference in New Issue
Block a user