11 apt-get install --no-install-recommends -y \ |
12 apt-get install --no-install-recommends -y \ |
12 procps git gcc make pkg-config \ |
13 procps git gcc make pkg-config \ |
13 libpcre3-dev libgnutls-dev libssl-dev libdb5.1-dev libmysqlclient-dev libpq-dev \ |
14 libpcre3-dev libgnutls-dev libssl-dev libdb5.1-dev libmysqlclient-dev libpq-dev \ |
14 libsqlite3-dev libldap2-dev libperl-dev autoconf \ |
15 libsqlite3-dev libldap2-dev libperl-dev autoconf \ |
15 sudo net-tools \ |
16 sudo net-tools \ |
16 less |
17 less libidn11-dev |
17 RUN apt-get install --no-install-recommends -y libidn11-dev |
|
18 |
18 |
19 # prepare user environment for running (exim) and testing exim (eximtest) |
19 .include ../../lib/*.docker |
20 RUN useradd --system -c 'Exim User' exim |
|
21 RUN useradd --home-dir /home/eximtest -G exim -c 'Exim Test User' -m eximtest |
|
22 |
|
23 # add additional files |
|
24 # (sudoers, Local/Makefile) |
|
25 COPY platforms/debian7/root/ / |
|
26 |
|
27 # add current working copy |
|
28 COPY exim/ /home/eximtest/exim/ |
|
29 |
|
30 # prepare the build - files need to be owned |
|
31 # by eximtest |
|
32 WORKDIR /home/eximtest |
|
33 RUN chown -R eximtest: . |
|
34 |
|
35 # Build Exim |
|
36 USER eximtest |
|
37 WORKDIR /home/eximtest/exim/src |
|
38 RUN make -j -l 1 |
|
39 |
|
40 |
|
41 # Prepare/Build the test-suite |
|
42 WORKDIR /home/eximtest/exim/test |
|
43 RUN mkdir /tmp/exim |
|
44 RUN echo $PWD/test-config > /tmp/exim/trusted-configs |
|
45 RUN autoconf |
|
46 RUN ./configure |
|
47 RUN make |
|
48 RUN rm -f test-config |
|
49 |
|
50 ## now finally run the tests |
|
51 ## should be done by you, manually :) |
|
52 # -> full hostname |
|
53 |
20 |
54 ENTRYPOINT ["./runtest", "../src/build-Linux-x86_64/exim", "-FLAVOUR", "debian7"] |
21 ENTRYPOINT ["./runtest", "../src/build-Linux-x86_64/exim", "-FLAVOUR", "debian7"] |