Skip to content

Commit

Permalink
Changed dockerfile for use for automating builds and testing w/codefresh
Browse files Browse the repository at this point in the history
  • Loading branch information
MelindaShore committed Dec 14, 2016
1 parent 9ae2499 commit 08fc6a5
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions Dockerfile
Expand Up @@ -4,31 +4,29 @@ MAINTAINER Melinda Shore <melinda.shore@nomountain.net>
RUN set -ex \
&& apt-get update \
&& apt-get install -y curl \
&& apt-get install -y git \
&& apt-get install -y wget \
&& apt-get install -y libssl-dev \
&& curl -fOSL "https://unbound.net/downloads/unbound-1.5.8.tar.gz" \
&& curl -fOSL "https://github.com/getdnsapi/getdns/archive/v1.0.0b2.tar.gz" \
&& mkdir -p /usr/src/unbound \
&& tar -xzC /usr/src/unbound --strip-components=1 -f unbound-1.5.8.tar.gz \
&& rm unbound-1.5.8.tar.gz \
&& mkdir /usr/src/libgetdns \
&& tar -xzC /usr/src/libgetdns --strip-components=1 -f v1.0.0b2.tar.gz \
&& rm v1.0.0b2.tar.gz \
&& apt-get -y install libidn11-dev \
&& apt-get -y install python-dev \
&& apt-get -y install make \
&& apt-get install -y automake autoconf libtool \
&& apt-get install -y shtool \
&& cd /usr/src/libgetdns \
&& cd /usr/src/unbound \
&& ./configure \
&& make \
&& make install \
&& ldconfig \
&& cd /usr/src/libgetdns \
&& cd /usr/src \
&& git clone https://github.com/getdnsapi/getdns.git \
&& cd /usr/src/getdns \
&& git checkout develop \
&& libtoolize -ci \
&& autoreconf -fi \
&& echo 'automake --force-missing --add-missing; exit 0' >/tmp/x \
&& sh /tmp/x
&& cd /usr/src/unbound \
&& ./configure \
&& make \
&& make install \
Expand All @@ -39,9 +37,9 @@ RUN set -ex \
&& cd /usr/src \
&& git clone https://github.com/getdnsapi/getdns-python-bindings.git \
&& cd /usr/src/getdns-python-bindings \
&& git checkout release/v1.0.0b1 \
&& git checkout develop \
&& python setup.py build \
&& python setup.py install


CMD ["/usr/bin/python2"]
CMD ["/usr/bin/python"]

0 comments on commit 08fc6a5

Please sign in to comment.