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