-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b2c9450
commit fd4f820
Showing
13 changed files
with
156 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
pdns: | ||
image: powerdns:bind | ||
ports: | ||
- '53:53' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
launch=bind |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
launch=geoip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
pdns: | ||
image: powerdns:sqlite3 | ||
ports: | ||
- '53:53' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
launch=gsqlite3 | ||
gsqlite3-database=db.sqlite3 |