platforms/fedora21-openssl/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 #RUN yum -y install deltarpm
       
     6 RUN yum -y update
       
     7 RUN yum -y install git gcc make
       
     8 RUN yum -y install pcre-devel openssl-devel libdb-devel 
       
     9 RUN yum -y install community-mysql-devel postgresql-devel 
       
    10 RUN yum -y install sqlite-devel openldap-devel perl-devel 
       
    11 RUN yum -y install autoconf sudo less net-tools
       
    12 Run yum -y install perl-ExtUtils-Embed 
       
    13 Run yum -y install libidn-devel
       
    14 RUN yum -y install gnutls-devel gcrypt-devel
       
    15 
       
    16 # prepare user environment for running (exim) and testing exim (eximtest)
       
    17 RUN useradd --system -c 'Exim User' exim
       
    18 RUN useradd --home-dir /home/eximtest -G exim -c 'Exim Test User' -m eximtest
       
    19 
       
    20 # add additional files
       
    21 # (sudoers, Local/Makefile)
       
    22 COPY platforms/fedora21/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", "fedora21"]