platforms/debian7-openssl/Dockerfile.in
changeset 19 fa091f2bbb60
parent 13 1fe49e314ec9
child 23 0d1bd8c1cf85
equal deleted inserted replaced
18:fccd70d9c971 19:fa091f2bbb60
       
     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 libgnutls-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 RUN apt-get install --no-install-recommends -y libidn11-dev
       
    18 
       
    19 # prepare user environment for running (exim) and testing exim (eximtest)
       
    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 
       
    54 ENTRYPOINT ["./runtest", "../src/build-Linux-x86_64/exim", "-FLAVOUR", "debian7"]