1 FROM fedora:21 |
|
2 |
|
3 .include_if_exists ../../docker.env |
|
4 |
|
5 #RUN yum -y install deltarpm |
|
6 RUN yum -y update |
|
7 RUN yum -y install git gcc make |
|
8 RUN yum -y install pcre-devel openssl-devel libdb-devel |
|
9 RUN yum -y install community-mysql-devel postgresql-devel |
|
10 RUN yum -y install sqlite-devel openldap-devel perl-devel |
|
11 RUN yum -y install autoconf sudo less net-tools |
|
12 Run yum -y install perl-ExtUtils-Embed |
|
13 Run yum -y install libidn-devel |
|
14 |
|
15 # prepare user environment for running (exim) and testing exim (eximtest) |
|
16 RUN useradd --system -c 'Exim User' exim |
|
17 RUN useradd --home-dir /home/eximtest -G exim -c 'Exim Test User' -m eximtest |
|
18 |
|
19 # add additional files |
|
20 # (sudoers, Local/Makefile) |
|
21 COPY platforms/fedora21/root/ / |
|
22 |
|
23 # add current working copy |
|
24 COPY exim/ /home/eximtest/exim/ |
|
25 |
|
26 # prepare the build - files need to be owned |
|
27 # by eximtest |
|
28 WORKDIR /home/eximtest |
|
29 RUN chown -R eximtest: . |
|
30 |
|
31 # Build Exim |
|
32 USER eximtest |
|
33 WORKDIR /home/eximtest/exim/src |
|
34 RUN make -j -l 1 |
|
35 |
|
36 |
|
37 # Prepare/Build the test-suite |
|
38 WORKDIR /home/eximtest/exim/test |
|
39 RUN mkdir /tmp/exim |
|
40 RUN echo $PWD/test-config > /tmp/exim/trusted-configs |
|
41 RUN autoconf |
|
42 RUN ./configure |
|
43 RUN make |
|
44 RUN rm -f test-config |
|
45 |
|
46 ## now finally run the tests |
|
47 ## should be done by you, manually :) |
|
48 # -> full hostname |
|
49 |
|
50 ENTRYPOINT ["./runtest", "../src/build-Linux-x86_64/exim", "-FLAVOUR", "fedora21"] |
|