FROM centos:7

RUN yum -y install initscripts
RUN yum -y install which

#COPY google-chrome.repo /etc/yum.repos.d/
COPY remi.repo /etc/yum.repos.d/

COPY network /etc/sysconfig/
COPY my.cnf /etc/
COPY redis.conf /etc/

RUN mkdir /root/.ssh/
RUN chown -R root:root /root/.ssh
RUN touch /root/.ssh/known_hosts

RUN yum -y update

RUN yum -y groupinstall 'Development Tools'
RUN rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
RUN rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm

RUN yum -y install mysql-server redis
RUN yum -y install git
RUN yum -y install mysql-devel libvirt-devel sqlite-devel

# for integration tests
#RUN yum -y install google-chrome-stable
RUN yum -y install wget

RUN wget -O ruby-install-0.7.0.tar.gz https://github.com/postmodern/ruby-install/archive/v0.7.0.tar.gz
RUN tar -xzvf ruby-install-0.7.0.tar.gz
RUN cd ruby-install-0.7.0 && make install
RUN ruby-install --system ruby 2.3.4

RUN gem install bundler:1.17.1

RUN curl -sL https://rpm.nodesource.com/setup_16.x | bash -
RUN yum -y install nodejs

RUN yum install -y https://dl.google.com/linux/chrome/rpm/stable/x86_64/google-chrome-stable-90.0.4430.212-1.x86_64.rpm
