Add Dockerfiles to aid in testing
Signed-off-by: Zack Cerza <zack@redhat.com>
This commit is contained in:
parent
2b06288792
commit
9218a452c3
3 changed files with 57 additions and 0 deletions
13
devtools/containers/README.md
Normal file
13
devtools/containers/README.md
Normal 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"
|
||||
24
devtools/containers/centos/Dockerfile
Normal file
24
devtools/containers/centos/Dockerfile
Normal 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
|
||||
20
devtools/containers/fedora/Dockerfile
Normal file
20
devtools/containers/fedora/Dockerfile
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue