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