platforms/fedora21-gnutls/Dockerfile.in
changeset 19 fa091f2bbb60
parent 13 1fe49e314ec9
child 23 0d1bd8c1cf85
equal deleted inserted replaced
18:fccd70d9c971 19:fa091f2bbb60
       
     1 FROM fedora:21
       
     2 
       
     3 .include_if_exists ../../docker.env
       
     4 
       
     5 # do not use delta rpm because the installed
       
     6 # packages in the base image may be crippled
       
     7 #RUN yum -y install deltarpm
       
     8 RUN yum -y update
       
     9 RUN yum -y install git gcc make
       
    10 RUN yum -y install pcre-devel openssl-devel libdb-devel 
       
    11 RUN yum -y install community-mysql-devel postgresql-devel 
       
    12 RUN yum -y install sqlite-devel openldap-devel perl-devel 
       
    13 RUN yum -y install autoconf sudo less net-tools
       
    14 Run yum -y install perl-ExtUtils-Embed 
       
    15 Run yum -y install libidn-devel
       
    16 RUN yum -y install gnutls-devel
       
    17 
       
    18 # prepare user environment for running (exim) and testing exim (eximtest)
       
    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/fedora21/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 
       
    53 ENTRYPOINT ["./runtest", "../src/build-Linux-x86_64/exim", "-FLAVOUR", "fedora21"]