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