diff -r 000000000000 -r 48358f88e059 Dockerfile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Dockerfile Thu Apr 02 23:32:10 2015 +0200 @@ -0,0 +1,47 @@ +FROM debian:8 + +ENV http_proxy http://172.17.42.1:3128/ +ENV DEBIAN_FRONTEND noninteractive + +RUN \ + apt-get update && \ + apt-get upgrade -y && \ + apt-get dist-upgrade -y && \ + apt-get install --no-install-recommends -y \ + git gcc make pkg-config \ + libpcre3-dev libssl-dev libdb5.3-dev libmysqlclient-dev libpq-dev \ + libsqlite3-dev libldap2-dev libperl-dev autoconf \ + sudo net-tools + +# prepare user environment for running (exim) and testing exim (exim-test) +RUN useradd --system -c 'Exim User' exim +RUN useradd --home-dir /home/exim-test -G exim -c 'Exim Test User' -m exim-test + +# add additional files +# (sudoers, Local/Makefile) +COPY root/ / + +# add current working copy +COPY exim/ /home/exim-test/exim/ + +# prepare the build - files need to be owned +# by exim-test +WORKDIR /home/exim-test +RUN chown -R exim-test: * + +# Build Exim +USER exim-test +WORKDIR /home/exim-test/exim/src +RUN make -j -l 1 + +# +## Prepare/Build the test-suite +#WORKDIR /home/exim-test/exim/test +#RUN mkdir /tmp/exim +#RUN echo $PWD/test-config > /tmp/exim/trusted-configs +#RUN autoconf +#RUN ./configure +#RUN make +# +## now finally run the tests +## should be done by you, manually :)