diff --git a/99-ci-maipo/Dockerfile b/99-ci-maipo/Dockerfile index a1f5830..2dc29f2 100644 --- a/99-ci-maipo/Dockerfile +++ b/99-ci-maipo/Dockerfile @@ -1,96 +1,101 @@ FROM centos:centos7 MAINTAINER Kolab Systems RUN rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 ADD http://obs.kolabsys.com/repositories/Kolab:/Winterfell/CentOS_7/Kolab:Winterfell.repo \ /etc/yum.repos.d/Kolab:Winterfell.repo ADD http://obs.kolabsys.com/repositories/Kolab:/16/CentOS_7/Kolab:16.repo \ /etc/yum.repos.d/Kolab:16.repo RUN echo "priority=60" >> /etc/yum.repos.d/Kolab:Winterfell.repo RUN echo "priority=60" >> /etc/yum.repos.d/Kolab:16.repo RUN rpm --import https://ssl.kolabsys.com/community.asc ADD http://download.opensuse.org/repositories/openSUSE:Tools/CentOS_7/openSUSE:Tools.repo \ /etc/yum.repos.d/openSUSE:Tools.repo RUN rpm --import http://download.opensuse.org/repositories/openSUSE:/Tools/CentOS_7/repodata/repomd.xml.key RUN sed -i \ -e '/tsflags=nodocs/d' \ -e '/override_install_langs/d' \ /etc/yum.conf && \ sed -r -i -e 's/enabled\s*=\s*1/enabled=0/g' /etc/yum/pluginconf.d/fastestmirror.conf ENV IMAGE maipo ADD /dbus.service /etc/systemd/system/dbus.service RUN ln -sf dbus.service /etc/systemd/system/messagebus.service ADD /httpd.service /etc/systemd/system/httpd.service ADD /systemctl /usr/bin/systemctl ADD /systemctl-socket-daemon /usr/bin/systemctl-socket-daemon RUN chmod -v a+rx \ /usr/bin/systemctl \ /usr/bin/systemctl-socket-daemon ADD /vimrc /root/.vimrc +RUN sed -r -i \ + -e 's/^mirrorlist/#mirrorlist/g' \ + -e 's/^#baseurl/baseurl/g' \ + /etc/yum.repos.d/*.repo + RUN yum clean all && \ yum -y install epel-release && \ rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 && \ sed -i \ -e 's/#baseurl/baseurl/g' \ -e '/^mirrorlist/d' \ /etc/yum.repos.d/epel*.repo && \ yum -y install yum-plugin-priorities && \ yum -y install \ @buildsys-build \ ant \ bind-utils \ build \ git \ lsof \ net-tools \ nmap-ncat \ openldap-clients \ osc \ perl-Data-Dumper \ perl-Digest-MD5 \ perl-TimeDate \ php-phpunit-PHPUnit-Selenium \ psmisc \ rpmdevtools \ screen \ strace \ sudo \ telnet \ traceroute \ vim-enhanced \ wget \ yum-utils && \ yum clean all RUN sed -i -e '/requiretty/d' /etc/sudoers WORKDIR /srv RUN git clone https://github.com/google/closure-compiler.git closure-compiler.git WORKDIR /srv/closure-compiler.git RUN ant jar RUN wget \ -O/usr/local/lib/selenium-server-standalone.jar \ http://mirror.kolabsys.com/pub/releases/selenium-server-standalone.jar ADD /functions.sh /functions.sh ADD /entrypoint.sh /entrypoint.sh RUN chmod a+x /entrypoint.sh ENTRYPOINT [ "/entrypoint.sh" ]