platforms/debian8-gnutls/Dockerfile.in
changeset 23 0d1bd8c1cf85
parent 19 fa091f2bbb60
equal deleted inserted replaced
22:06b955c7b673 23:0d1bd8c1cf85
       
     1 .platform debian8-gnutls
     1 FROM debian:8
     2 FROM debian:8
     2 
     3 
     3 .include_if_exists ../../docker.env
     4 .include_if_exists ../../docker.env
       
     5 
     4 ENV DEBIAN_FRONTEND noninteractive 
     6 ENV DEBIAN_FRONTEND noninteractive 
     5 
     7 
     6 RUN \
     8 RUN \
     7  apt-get update && \
     9  apt-get update && \
     8  apt-get upgrade -y && \
    10  apt-get upgrade -y && \
     9  apt-get dist-upgrade -y && \
    11  apt-get dist-upgrade -y && \
    10  apt-get install --no-install-recommends -y \
    12  apt-get install --no-install-recommends -y \
    11  git gcc make pkg-config \
    13  git gcc make pkg-config \
    12  libpcre3-dev libgnutls-dev libssl-dev libdb5.3-dev libmysqlclient-dev libpq-dev \
    14  libpcre3-dev libgnutls28-dev libssl-dev libdb5.3-dev libmysqlclient-dev libpq-dev \
    13  libsqlite3-dev libldap2-dev libperl-dev autoconf \
    15  libsqlite3-dev libldap2-dev libperl-dev autoconf \
    14  sudo net-tools \
    16  sudo net-tools \
    15  less
    17  less libidn11-dev libgcrypt-dev
    16 RUN apt-get install --no-install-recommends -y libidn11-dev
       
    17 
    18 
    18 # prepare user environment for running (exim) and testing exim (eximtest)
    19 .include ../../lib/*.docker
    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 
    20 
    53 ENTRYPOINT ["./runtest", "../src/build-Linux-x86_64/exim", "-FLAVOUR", "debian8"]
    21 ENTRYPOINT ["./runtest", "../src/build-Linux-x86_64/exim", "-FLAVOUR", "debian8"]