platforms/opensuse-openssl/Dockerfile.in
changeset 19 fa091f2bbb60
parent 13 1fe49e314ec9
child 23 0d1bd8c1cf85
equal deleted inserted replaced
18:fccd70d9c971 19:fa091f2bbb60
       
     1 FROM opensuse
       
     2 
       
     3 .include_if_exists ../../docker.env
       
     4 
       
     5 #RUN zypper -y install deltarpm
       
     6 RUN zypper --gpg-auto-import-keys -n update 
       
     7 RUN zypper -n install --no-recommends git gcc make
       
     8 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 sqlite-devel openldap2-devel 
       
    11 RUN zypper -n install --no-recommends autoconf sudo less net-tools
       
    12 RUN zypper -n install --no-recommends libidn-devel
       
    13 
       
    14 # prepare user environment for running (exim) and testing exim (eximtest)
       
    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 
       
    51 ENTRYPOINT ["./runtest", "../src/build-Linux-x86_64/exim", "-FLAVOUR", "opensuse"]