Skip to content

Commit

Permalink
4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
soullivaneuh committed Jan 18, 2016
1 parent b2c9450 commit 8ccd89a
Show file tree
Hide file tree
Showing 13 changed files with 155 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ env:
- VERSION=3.4 VARIANT=mysql
- VERSION=3.4 VARIANT=sqlite3

- VERSION=4.0 VARIANT=bind
- VERSION=4.0 VARIANT=geoip
- VERSION=4.0 VARIANT=mysql
- VERSION=4.0 VARIANT=sqlite3

before_script:
- export REPO=dockervan/powerdns
- docker pull $REPO:$VERSION-$VARIANT || true
Expand Down
25 changes: 25 additions & 0 deletions 4.0/bind/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
FROM alpine:3.3

MAINTAINER Sullivan SENECHAL <[email protected]>

RUN apk add --no-cache --virtual .deps boost-serialization libstdc++ \
&& apk add --no-cache --virtual .modules-deps \
&& apk add --no-cache --virtual .build-deps openssl tar file gcc g++ make autoconf boost-dev \
&& apk add --no-cache --virtual .modules-build-deps \

&& wget https://downloads.powerdns.com/releases/pdns-4.0.0-alpha1.tar.bz2 -O pdns.tar.bz2 \
&& mkdir pdns && tar xf pdns.tar.bz2 -C pdns --strip-components 1 \
&& rm -rf pdns.tar.bz2 \
&& cd pdns \
&& ./configure --with-modules="bind" \
&& make -j$(getconf _NPROCESSORS_ONLN) && make install && make clean \
&& cd .. \
&& rm -r pdns \

&& apk del .build-deps .modules-build-deps

ADD pdns.conf /usr/local/etc/pdns.conf

EXPOSE 53

CMD ["pdns_server", "--loglevel=9", "--log-dns-queries"]
4 changes: 4 additions & 0 deletions 4.0/bind/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
pdns:
image: powerdns:bind
ports:
- '53:53'
1 change: 1 addition & 0 deletions 4.0/bind/pdns.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
launch=bind
33 changes: 33 additions & 0 deletions 4.0/geoip/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
FROM alpine:3.3

MAINTAINER Sullivan SENECHAL <[email protected]>

RUN apk add --no-cache --virtual .deps boost-serialization libstdc++ \
&& apk add --no-cache --virtual .modules-deps geoip \
&& apk add --no-cache --virtual .build-deps openssl tar file gcc g++ make autoconf boost-dev \
&& apk add --no-cache --virtual .modules-build-deps cmake geoip-dev \

&& wget https://github.com/jbeder/yaml-cpp/archive/release-0.5.3.tar.gz -O yaml-cpp.tar.gz \
&& mkdir yaml-cpp && tar xf yaml-cpp.tar.gz -C yaml-cpp --strip-components 1 \
&& cd yaml-cpp \
&& mkdir build && cd build \
&& cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=/usr .. && make -j$(getconf _NPROCESSORS_ONLN) && make install \
&& cd ../.. \
&& rm -r yaml-cpp \

&& wget https://downloads.powerdns.com/releases/pdns-4.0.0-alpha1.tar.bz2 -O pdns.tar.bz2 \
&& mkdir pdns && tar xf pdns.tar.bz2 -C pdns --strip-components 1 \
&& rm -rf pdns.tar.bz2 \
&& cd pdns \
&& ./configure --with-modules="geoip" \
&& make -j$(getconf _NPROCESSORS_ONLN) && make install && make clean \
&& cd .. \
&& rm -r pdns \

&& apk del .build-deps .modules-build-deps

ADD pdns.conf /usr/local/etc/pdns.conf

EXPOSE 53

CMD ["pdns_server", "--loglevel=9", "--log-dns-queries"]
6 changes: 6 additions & 0 deletions 4.0/geoip/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
pdns:
image: powerdns:geoip
ports:
- '53:53'
volumes:
- /usr/share/GeoIP:/usr/share/GeoIP:ro
1 change: 1 addition & 0 deletions 4.0/geoip/pdns.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
launch=geoip
33 changes: 33 additions & 0 deletions 4.0/mysql/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
FROM alpine:3.3

MAINTAINER Sullivan SENECHAL <[email protected]>

RUN apk add --no-cache --virtual .deps boost-serialization libstdc++ \
&& apk add --no-cache --virtual .build-deps openssl tar file gcc g++ make autoconf boost-dev \
&& apk add --no-cache --virtual .modules-build-deps cmake \

&& wget https://dev.mysql.com/get/Downloads/Connector-C/mysql-connector-c-6.1.6-src.tar.gz -O mysql-connector-c.tar.gz \
&& mkdir mysql-connector-c && tar xf mysql-connector-c.tar.gz -C mysql-connector-c --strip-components 1 \
&& cd mysql-connector-c \
&& cmake -G "Unix Makefiles" && make -j$(getconf _NPROCESSORS_ONLN) && make install \
&& ln -s /usr/local/mysql/bin/* /usr/local/bin \
&& ln -s /usr/local/mysql/lib/libmysqlclient.so.18 /usr/lib/libmysqlclient.so.18 \
&& cd .. \
&& rm -r mysql-connector-c.tar.gz mysql-connector-c \

&& wget https://downloads.powerdns.com/releases/pdns-4.0.0-alpha1.tar.bz2 -O pdns.tar.bz2 \
&& mkdir pdns && tar xf pdns.tar.bz2 -C pdns --strip-components 1 \
&& rm -rf pdns.tar.bz2 \
&& cd pdns \
&& ./configure --with-modules="gmysql" \
&& make -j$(getconf _NPROCESSORS_ONLN) && make install && make clean \
&& cd .. \
&& rm -r pdns \

&& apk del .build-deps .modules-build-deps

ADD pdns.conf /usr/local/etc/pdns.conf

EXPOSE 53

CMD ["pdns_server", "--loglevel=9", "--log-dns-queries"]
11 changes: 11 additions & 0 deletions 4.0/mysql/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
pdns:
image: powerdns:mysql
links:
- mysql:db
ports:
- '53:53'

mysql:
image: mysql
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
5 changes: 5 additions & 0 deletions 4.0/mysql/pdns.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
launch=gmysql
gmysql-host=db
gmysql-user=root
gmysql-dbname=pdns
gmysql-password=
25 changes: 25 additions & 0 deletions 4.0/sqlite3/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
FROM alpine:3.3

MAINTAINER Sullivan SENECHAL <[email protected]>

RUN apk add --no-cache --virtual .deps boost-serialization libstdc++ \
&& apk add --no-cache --virtual .modules-deps sqlite-libs \
&& apk add --no-cache --virtual .build-deps openssl tar file gcc g++ make autoconf boost-dev \
&& apk add --no-cache --virtual .modules-build-deps sqlite-dev \

&& wget https://downloads.powerdns.com/releases/pdns-4.0.0-alpha1.tar.bz2 -O pdns.tar.bz2 \
&& mkdir pdns && tar xf pdns.tar.bz2 -C pdns --strip-components 1 \
&& rm -rf pdns.tar.bz2 \
&& cd pdns \
&& ./configure --with-modules="gsqlite3" \
&& make -j$(getconf _NPROCESSORS_ONLN) && make install && make clean \
&& cd .. \
&& rm -r pdns \

&& apk del .build-deps .modules-build-deps

ADD pdns.conf /usr/local/etc/pdns.conf

EXPOSE 53

CMD ["pdns_server", "--loglevel=9", "--log-dns-queries"]
4 changes: 4 additions & 0 deletions 4.0/sqlite3/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
pdns:
image: powerdns:sqlite3
ports:
- '53:53'
2 changes: 2 additions & 0 deletions 4.0/sqlite3/pdns.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
launch=gsqlite3
gsqlite3-database=db.sqlite3

0 comments on commit 8ccd89a

Please sign in to comment.