platforms/debian7/Dockerfile.in
changeset 5 3e135449f797
parent 4 992c1b212004
child 7 a26a3f0b94d3
equal deleted inserted replaced
4:992c1b212004 5:3e135449f797
       
     1 FROM debian:7
       
     2 
       
     3 .include_if_exists ../../docker.env
       
     4 ENV http_proxy http://172.17.42.1:3128/
       
     5 ENV DEBIAN_FRONTEND noninteractive 
       
     6 
       
     7 RUN \
       
     8  apt-get update && \
       
     9  apt-get upgrade -y && \
       
    10  apt-get dist-upgrade -y && \
       
    11  apt-get install --no-install-recommends -y \
       
    12  procps git gcc make pkg-config \
       
    13  libpcre3-dev libssl-dev libdb5.1-dev libmysqlclient-dev libpq-dev \
       
    14  libsqlite3-dev libldap2-dev libperl-dev autoconf \
       
    15  sudo net-tools \
       
    16  less
       
    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/debian7/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 
       
    48 ## now finally run the tests
       
    49 ## should be done by you, manually :)
       
    50 # -> full hostname
       
    51 
       
    52 ENTRYPOINT ["./runtest", "../src/build-Linux-x86_64/exim", \
       
    53     "-FLAVOUR", "debian7"]