platforms/debian7-openssl/Dockerfile.in
changeset 23 0d1bd8c1cf85
parent 19 fa091f2bbb60
equal deleted inserted replaced
22:06b955c7b673 23:0d1bd8c1cf85
       
     1 .platform debian7-openssl
     1 FROM debian:7
     2 FROM debian:7
     2 
     3 
     3 .include_if_exists ../../docker.env
     4 .include_if_exists ../../docker.env
     4 ENV http_proxy http://172.17.42.1:3128/
     5 ENV http_proxy http://172.17.42.1:3128/
     5 ENV DEBIAN_FRONTEND noninteractive 
     6 ENV DEBIAN_FRONTEND noninteractive 
    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"]