summaryrefslogtreecommitdiffstats
path: root/ci/maipo
blob: b72065afa3e150cf39f2a5961f30d7586ca9c991 (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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
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
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' /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 \*

ENV IMAGE maipo

ADD http://cgit.kolab.org/docker/plain/ci/files.d/dbus.service /etc/systemd/system/dbus.service
RUN ln -sf dbus.service /etc/systemd/system/messagebus.service

ADD http://cgit.kolab.org/docker/plain/ci/files.d/httpd.service /etc/systemd/system/httpd.service

ADD http://cgit.kolab.org/docker/plain/ci/files.d/systemctl /usr/bin/systemctl
ADD http://cgit.kolab.org/docker/plain/ci/files.d/systemctl-socket-daemon /usr/bin/systemctl-socket-daemon

RUN chmod -v a+rx \
    /usr/bin/systemctl \
    /usr/bin/systemctl-socket-daemon

RUN sed -i -e '/requiretty/d' /etc/sudoers

ADD https://cgit.cyrus.foundation/docker/plain/.vimrc /root/.vimrc

#RUN yum clean all && \
#    yum -y install epel-release && \
#    yum -y install --skip-broken \
#        ant \
#        atk-devel.i686 \
#        build \
#        cairo-devel.i686 \
#        fontconfig-devel.i686 \
#        freetype-devel \
#        freetype-devel.i686 \
#        gcc.i686 \
#        gcc-c++.i686 \
#        gdk-pixbuf-devel.i686 \
#        git \
#        glibc-devel \
#        glibc-devel.i686 \
#        glib2-devel.i686 \
#        gperf \
#        gtk2-devel \
#        gtk2-devel.i686 \
#        ibus-devel \
#        java-devel \
#        osc \
#        pango-devel.i686 \
#        passwd \
#        perl-Data-Dumper \
#        perl-Digest-MD5 \
#        perl-TimeDate \
#        php-phpunit-PHPUnit-Selenium \
#        python-selenium \
#        rpmdevtools \
#        ruby \
#        screen \
#        sudo \
#        vim-enhanced \
#        yum-utils \
#        @development \
#        @fedora-packager && \
#    yum-builddep -y --skip-broken \
#        $(yum -d 0 -e 0 \
#            --disablerepo=\* \
#            --enablerepo=Kolab_Development \
#            list available 2>&1 | \
#            grep -vE "^(Available Packages|\s+)" | \
#            awk '{print $1}' \
#        )

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 \
        ant \
        build \
        git \
        osc \
        perl-Data-Dumper \
        perl-Digest-MD5 \
        perl-TimeDate \
        php-phpunit-PHPUnit-Selenium \
        rpmdevtools \
        screen \
        sudo \
        vim-enhanced \
        yum-utils && \
    yum clean all

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

ADD http://mirror.kolabsys.com/pub/releases/phantomjs-1.9.7-linux-x86_64.tar.bz2 /srv/
WORKDIR /srv
RUN tar jxvf phantomjs-1.9.7-linux-x86_64.tar.bz2
RUN 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 https://cgit.kolab.org/docker/plain/ci/functions.sh /

ADD https://cgit.kolab.org/docker/plain/ci/entrypoint.sh /
RUN chmod 755 /entrypoint.sh
ENTRYPOINT [ "/entrypoint.sh" ]