summaryrefslogtreecommitdiffstats
path: root/ci/maipo
blob: b75ff255c492a56817fd1960ac93485a2bdb3738 (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
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

ENV IMAGE maipo

RUN yum clean metadata && \
    yum -y install \
        ant \
        build \
        epel-release \
        git \
        osc \
        passwd \
        perl-Digest-MD5 \
        perl-TimeDate \
        rpmdevtools \
        sudo \
        yum-utils \
        @development \
        @fedora-packager && \
    yum-builddep -y \
        $(yum -d 0 -e 0 \
            --disablerepo=\* \
            --enablerepo=Kolab_Development \
            list available 2>&1 | \
            grep -vE "^(Available Packages|\s+)" | \
            awk '{print $1}' \
        )

WORKDIR /srv
RUN git clone https://github.com/google/closure-compiler.git closure-compiler.git
WORKDIR /srv/closure-compiler.git
RUN ant jar

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