platforms/opensuse-openssl/Dockerfile.in
changeset 23 0d1bd8c1cf85
parent 19 fa091f2bbb60
equal deleted inserted replaced
22:06b955c7b673 23:0d1bd8c1cf85
       
     1 .platform opensuse-openssl
     1 FROM opensuse
     2 FROM opensuse
     2 
     3 
     3 .include_if_exists ../../docker.env
     4 .include_if_exists ../../docker.env
     4 
     5 
     5 #RUN zypper -y install deltarpm
     6 #RUN zypper -y install deltarpm
     8 RUN zypper -n install --no-recommends pcre-devel gnutls-devel openssl-devel libdb-4_8-devel
     9 RUN zypper -n install --no-recommends pcre-devel gnutls-devel openssl-devel libdb-4_8-devel
     9 RUN zypper -n install --no-recommends mysql-devel postgresql-devel 
    10 RUN zypper -n install --no-recommends mysql-devel postgresql-devel 
    10 RUN zypper -n install --no-recommends sqlite-devel openldap2-devel 
    11 RUN zypper -n install --no-recommends sqlite-devel openldap2-devel 
    11 RUN zypper -n install --no-recommends autoconf sudo less net-tools
    12 RUN zypper -n install --no-recommends autoconf sudo less net-tools
    12 RUN zypper -n install --no-recommends libidn-devel
    13 RUN zypper -n install --no-recommends libidn-devel
       
    14 RUN zypper -n install --no-recommends libgcrypt-devel
    13 
    15 
    14 # prepare user environment for running (exim) and testing exim (eximtest)
    16 .include ../../lib/*.docker
    15 RUN groupadd --system exim
       
    16 RUN useradd --system -g exim -c 'Exim User' exim
       
    17 RUN groupadd eximtest
       
    18 RUN useradd --home-dir /home/eximtest -g eximtest -G exim -c 'Exim Test User' -m eximtest
       
    19 
       
    20 # add additional files
       
    21 # (sudoers, Local/Makefile)
       
    22 COPY platforms/opensuse/root/ /
       
    23 
       
    24 # add current working copy
       
    25 COPY exim/ /home/eximtest/exim/
       
    26 
       
    27 # prepare the build - files need to be owned
       
    28 # by eximtest
       
    29 WORKDIR /home/eximtest
       
    30 RUN chown -R eximtest: .
       
    31 
       
    32 # Build Exim
       
    33 USER eximtest
       
    34 WORKDIR /home/eximtest/exim/src
       
    35 RUN make -j -l 1
       
    36 
       
    37 
       
    38 # Prepare/Build the test-suite
       
    39 WORKDIR /home/eximtest/exim/test
       
    40 RUN mkdir /tmp/exim
       
    41 RUN echo $PWD/test-config > /tmp/exim/trusted-configs
       
    42 RUN autoconf
       
    43 RUN ./configure
       
    44 RUN make
       
    45 RUN rm -f test-config
       
    46 
       
    47 ## now finally run the tests
       
    48 ## should be done by you, manually :)
       
    49 # -> full hostname
       
    50 
    17 
    51 ENTRYPOINT ["./runtest", "../src/build-Linux-x86_64/exim", "-FLAVOUR", "opensuse"]
    18 ENTRYPOINT ["./runtest", "../src/build-Linux-x86_64/exim", "-FLAVOUR", "opensuse"]