platforms/debian8/Dockerfile.in
changeset 5 3e135449f797
parent 3 7a5b244351d3
child 7 a26a3f0b94d3
equal deleted inserted replaced
4:992c1b212004 5:3e135449f797
       
     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 libssl-dev libdb5.3-dev libmysqlclient-dev libpq-dev \
       
    13  libsqlite3-dev libldap2-dev libperl-dev autoconf \
       
    14  sudo net-tools \
       
    15  less
       
    16 
       
    17 # prepare user environment for running (exim) and testing exim (eximtest)
       
    18 RUN useradd --system -c 'Exim User' exim
       
    19 RUN useradd --home-dir /home/eximtest -G exim -c 'Exim Test User' -m eximtest
       
    20 
       
    21 # add additional files
       
    22 # (sudoers, Local/Makefile)
       
    23 COPY platforms/debian8/root/ /
       
    24 
       
    25 # add current working copy
       
    26 COPY exim/ /home/eximtest/exim/
       
    27 
       
    28 # prepare the build - files need to be owned
       
    29 # by eximtest
       
    30 WORKDIR /home/eximtest
       
    31 RUN chown -R eximtest: .
       
    32 
       
    33 # Build Exim
       
    34 USER eximtest
       
    35 WORKDIR /home/eximtest/exim/src
       
    36 RUN make -j -l 1
       
    37 
       
    38 
       
    39 # Prepare/Build the test-suite
       
    40 WORKDIR /home/eximtest/exim/test
       
    41 RUN mkdir /tmp/exim
       
    42 RUN echo $PWD/test-config > /tmp/exim/trusted-configs
       
    43 RUN autoconf
       
    44 RUN ./configure
       
    45 RUN make
       
    46 
       
    47 ## now finally run the tests
       
    48 ## should be done by you, manually :)
       
    49 # -> full hostname
       
    50 
       
    51 ENTRYPOINT ["./runtest", "../src/build-Linux-x86_64/exim", "-FLAVOUR", "debian8"]