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