Add Dockerfiles to aid in testing

Signed-off-by: Zack Cerza <zack@redhat.com>
This commit is contained in:
Zack Cerza 2020-07-08 13:07:00 -06:00 committed by Tomas Kopecek
parent 2b06288792
commit 9218a452c3
3 changed files with 57 additions and 0 deletions

View file

@ -0,0 +1,13 @@
Dockerfiles for development
===========================
To facilitate in development - specifically, running tests, two Dockerfiles are
provided:
* [`./centos/Dockerfile`](./centos/Dockerfile) CentOS 6, for testing with python2.6
* [`./fedora/Dockerfile`](./fedora/Dockerfile) Fedora 32, for testing with python3.8
To use them, taking fedora as an example:
docker build -t koji_test_fedora:latest --no-cache ./devtools/containers/fedora
docker run --rm -v $PWD:/koji --name koji_test koji_test_fedora:latest bash -c "cd /koji && tox -e flake8,py3"

View file

@ -0,0 +1,24 @@
FROM centos:6
RUN \
yum install -y \
gcc \
git \
make \
krb5-devel \
libffi-devel \
openssl-devel \
pyOpenSSL \
python-devel \
redhat-rpm-config \
rpm-build \
rpm-python \
yum-utils && \
yum install -y epel-release && \
yum install -y \
python-flake8 \
python-pip \
python-psycopg2 \
python-qpid-proton \
python-requests-kerberos && \
pip install -U 'pip==9.0.1' && \
pip install -U tox

View file

@ -0,0 +1,20 @@
FROM fedora:32
RUN \
dnf install -y \
gcc \
git \
glib2-devel \
glibc-langpack-en \
krb5-devel \
libffi-devel \
libxml2-devel \
make \
openssl-devel \
python3-devel \
python3-pip \
python3-rpm \
python3-tox \
redhat-rpm-config \
rpm-build \
sqlite-devel \
yum-utils