2017-12-14 10:24:57 +00:00
|
|
|
FROM centos:7
|
|
|
|
|
|
|
|
COPY epel.repo /etc/yum.repos.d/
|
|
|
|
RUN yum -y install --nogpgcheck epel-release && \
|
|
|
|
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-* && \
|
2018-09-19 12:00:25 +00:00
|
|
|
yum -y install make libgit2-glib tito pylint \
|
2017-12-14 10:24:57 +00:00
|
|
|
python-nose python-mako python-flask \
|
2018-02-14 12:05:45 +00:00
|
|
|
python-coverage libselinux-python sudo \
|
2018-02-13 09:18:17 +00:00
|
|
|
pykickstart python2-pytoml python-sphinx \
|
2018-03-13 18:47:12 +00:00
|
|
|
python2-mock python-semantic_version \
|
2020-03-05 01:35:29 +00:00
|
|
|
anaconda-tui python-gevent beakerlib \
|
|
|
|
python2-rpmfluff && \
|
2017-12-14 10:24:57 +00:00
|
|
|
yum clean all && \
|
2018-09-19 12:00:25 +00:00
|
|
|
rm -rf /var/cache/yum && \
|
|
|
|
useradd weldr
|
2017-12-14 10:24:57 +00:00
|
|
|
|
|
|
|
RUN mkdir /lorax
|
2018-02-13 09:18:17 +00:00
|
|
|
COPY . /lorax
|
2018-09-19 12:00:25 +00:00
|
|
|
# remove byte-compiled files to avoid issues between Python 2/3
|
|
|
|
# this can happen when you switch between rhel7 and master branches
|
|
|
|
RUN find /lorax -name "*.pyc" -exec rm -f {} \;
|
2017-12-14 10:24:57 +00:00
|
|
|
|
|
|
|
WORKDIR /lorax
|
|
|
|
RUN make test
|