FROM centos:7
MAINTAINER Jean Gabes <naparuba@gmail.com>

RUN        yum --nogpgcheck  -y  --rpmverbosity=error  --errorlevel=1  --color=auto install epel-release
RUN        yum --nogpgcheck  -y  --rpmverbosity=error  --errorlevel=1  --color=auto install python-requests
RUN        yum --nogpgcheck  -y  --rpmverbosity=error  --errorlevel=1  --color=auto install python-jinja2
RUN        yum --nogpgcheck  -y  --rpmverbosity=error  --errorlevel=1  --color=auto install python-crypto
RUN        yum --nogpgcheck  -y  --rpmverbosity=error  --errorlevel=1  --color=auto install python-cherrypy
RUN        yum --nogpgcheck  -y  --rpmverbosity=error  --errorlevel=1  --color=auto install gcc
RUN        yum --nogpgcheck  -y  --rpmverbosity=error  --errorlevel=1  --color=auto install gcc-c++
RUN        yum --nogpgcheck  -y  --rpmverbosity=error  --errorlevel=1  --color=auto install python-devel
RUN        yum --nogpgcheck  -y  --rpmverbosity=error  --errorlevel=1  --color=auto install libyaml-devel
RUN        yum --nogpgcheck  -y  --rpmverbosity=error  --errorlevel=1  --color=auto install python-setuptools

RUN        yum --nogpgcheck  -y  --rpmverbosity=error  --errorlevel=1  --color=auto install redis

ADD        . /root/opsbro-oss
WORKDIR    /root/opsbro-oss



ENTRYPOINT      test/test_one_linux_installation.sh && test/test_redis.sh


