From 10c67d3c87e2941c861ed3d283a1ea53b7a6571b Mon Sep 17 00:00:00 2001 From: Clement Verna Date: Mar 15 2018 09:14:34 +0000 Subject: Add centos container based test environment Signed-off-by: Clement Verna --- diff --git a/README.rst b/README.rst index 3f227a7..ec86d10 100644 --- a/README.rst +++ b/README.rst @@ -79,7 +79,8 @@ To stop the containers, run the following :: More information about docker-compose cli see https://docs.docker.com/compose/reference/. -* Running the unit-tests +Running the unit-tests +********************** To run the unit-tests, there is container available with all the dependencies needed. @@ -91,6 +92,11 @@ Once the container is built, you can run the tests as follow :: $ docker run -it --rm -v `pwd`:/code:z --workdir /code pagure-test ./runtests.sh +You can also run the tests using a centos container, to do so :: + + $ docker build -t pagure-test-centos -f dev/docker/test_environment_centos7 dev/docker + $ docker run -it --rm -v `pwd`:/code:z --workdir /code pagure-test-centos ./runtest.sh + Manually ^^^^^^^^ diff --git a/dev/docker/test_environment_centos7 b/dev/docker/test_environment_centos7 new file mode 100644 index 0000000..c5d34f2 --- /dev/null +++ b/dev/docker/test_environment_centos7 @@ -0,0 +1,16 @@ +FROM centos:7 + +RUN yum -y install epel-release pip + +RUN yum install -y python-alembic python-arrow python-binaryornot\ + python-bleach python-blinker python-chardet python-cryptography\ + python-docutils python-enum34 python-flask python2-fedora-flask\ + python-flask-wtf python-flask-multistatic py-bcrypt python-jinja2\ + python-markdown python-munch python-openid-cla python-openid-teams\ + python-psutil python-pygit2 python-pygments python2-pillow\ + python-sqlalchemy python-straight-plugin python-wtforms python-nose\ + python-coverage python-mock python-mock python-eventlet python2-flask-oidc\ + python-nose python-flake8 python-pip sudo tmux redis vim git &&\ + pip install celery redis trollius + +ENV LC_ALL=C.UTF-8 LANG=C.UTF-8