summaryrefslogtreecommitdiffstats
path: root/99-ci-maipo/Dockerfile
blob: 9ec4af05632027983df2c954c7ea75dd949e0c6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
FROM centos:centos7
MAINTAINER Kolab Systems <vanmeeuwen@kolabsys.com>

ADD http://obs.kolabsys.com/repositories/Kolab:/Development/CentOS_7/Kolab:Development.repo \
    /etc/yum.repos.d/Kolab:Development.repo

ADD http://obs.kolabsys.com/repositories/Kolab:/3.4/CentOS_7/Kolab:3.4.repo \
    /etc/yum.repos.d/Kolab:3.4.repo

ADD http://obs.kolabsys.com/repositories/Kolab:/3.4:/Updates/CentOS_7/Kolab:3.4:Updates.repo \
    /etc/yum.repos.d/Kolab:3.4:Updates.repo

RUN echo "priority=60" >> /etc/yum.repos.d/Kolab:Development.repo

RUN echo "priority=60" >> /etc/yum.repos.d/Kolab:3.4.repo

RUN echo "priority=60" >> /etc/yum.repos.d/Kolab:3.4:Updates.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

#RUN yum -y reinstall \* && \
#    yum clean all

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 yum clean all && \
    yum -y install epel-release && \
    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 \
        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

ADD http://mirror.kolabsys.com/pub/releases/selenium-server-standalone.jar /usr/local/lib/selenium-server-standalone.jar

#WORKDIR /srv
#RUN git clone https://github.com/SeleniumHQ/selenium.git selenium.git
#WORKDIR /srv/selenium.git
#RUN ./go --trace --verbose build
#RUN ./go selenium-server-standalone

WORKDIR /srv
RUN wget http://mirror.kolabsys.com/pub/releases/phantomjs-1.9.7-linux-x86_64.tar.bz2 && \
    tar jxvf phantomjs-1.9.7-linux-x86_64.tar.bz2 && \
    cp phantomjs-1.9.7-linux-x86_64/bin/phantomjs /usr/local/bin/ && \
    rm -rf phantomjs-1.9.7-linux-x86_64*

#WORKDIR /srv/
#RUN git clone https://github.com/ariya/phantomjs.git phantomjs.git
#WORKDIR /srv/phantomjs.git
#RUN ./build.sh --confirm

ADD /functions.sh /
ADD entrypoint.sh /

RUN chmod 755 /entrypoint.sh

ENTRYPOINT [ "/entrypoint.sh" ]