2021-03-15 08:33:06 +00:00
|
|
|
FROM centos:7
|
|
|
|
LABEL \
|
|
|
|
name="Pungi test" \
|
|
|
|
description="Run tests using tox with Python 2" \
|
|
|
|
vendor="Pungi developers" \
|
|
|
|
license="MIT"
|
|
|
|
|
2021-08-17 02:08:35 +00:00
|
|
|
RUN yum -y update && yum -y install epel-release && yum -y install \
|
2021-03-15 08:33:06 +00:00
|
|
|
git \
|
2021-08-17 02:08:35 +00:00
|
|
|
libmodulemd2 \
|
2021-03-15 08:33:06 +00:00
|
|
|
make \
|
|
|
|
python3 \
|
2021-08-17 02:08:35 +00:00
|
|
|
python-createrepo_c \
|
|
|
|
python-gobject-base \
|
2021-03-15 08:33:06 +00:00
|
|
|
python-gssapi \
|
|
|
|
python-libcomps \
|
|
|
|
pykickstart \
|
|
|
|
&& yum clean all
|
|
|
|
|
|
|
|
# python-tox in yum repo is too old, let's install latest version
|
|
|
|
RUN pip3 install tox
|
|
|
|
|
|
|
|
WORKDIR /src
|
|
|
|
|
|
|
|
COPY . .
|
|
|
|
|
|
|
|
CMD ["tox", "-e", "py27"]
|