Update to powerdns 4.3.0; Add lua (closes #33)

This commit is contained in:
Christoph Wiechert 2020-05-24 14:34:31 +02:00
parent 2cf9524f20
commit 9660fe5c36
3 changed files with 7 additions and 6 deletions

View File

@ -1,8 +1,8 @@
FROM alpine:3.9
MAINTAINER Christoph Wiechert <wio@psitrax.de>
ENV REFRESHED_AT="2019-10-10" \
POWERDNS_VERSION=4.2.0 \
ENV REFRESHED_AT="2020-05-24" \
POWERDNS_VERSION=4.3.0 \
MYSQL_DEFAULT_AUTOCONF=true \
MYSQL_DEFAULT_HOST="mysql" \
MYSQL_DEFAULT_PORT="3306" \
@ -10,20 +10,20 @@ ENV REFRESHED_AT="2019-10-10" \
MYSQL_DEFAULT_PASS="root" \
MYSQL_DEFAULT_DB="pdns"
RUN apk --update add bash libpq sqlite-libs libstdc++ libgcc mariadb-client mariadb-connector-c && \
RUN apk --update add bash libpq sqlite-libs libstdc++ libgcc mariadb-client mariadb-connector-c lua-dev curl-dev && \
apk add --virtual build-deps \
g++ make mariadb-dev postgresql-dev sqlite-dev curl boost-dev mariadb-connector-c-dev && \
curl -sSL https://downloads.powerdns.com/releases/pdns-$POWERDNS_VERSION.tar.bz2 | tar xj -C /tmp && \
cd /tmp/pdns-$POWERDNS_VERSION && \
./configure --prefix="" --exec-prefix=/usr --sysconfdir=/etc/pdns \
--with-modules="bind gmysql gpgsql gsqlite3" --without-lua --disable-lua-records && \
--with-modules="bind gmysql gpgsql gsqlite3" && \
make && make install-strip && cd / && \
mkdir -p /etc/pdns/conf.d && \
addgroup -S pdns 2>/dev/null && \
adduser -S -D -H -h /var/empty -s /bin/false -G pdns -g pdns pdns 2>/dev/null && \
cp /usr/lib/libboost_program_options-mt.so* /tmp && \
apk del --purge build-deps && \
mv /tmp/libboost_program_options-mt.so* /usr/lib/ && \
mv /tmp/lib* /usr/lib/ && \
rm -rf /tmp/pdns-$POWERDNS_VERSION /var/cache/apk/*
ADD schema.sql pdns.conf /etc/pdns/

View File

@ -15,7 +15,7 @@
## Supported tags
* Exact: i.e. `4.1.10`: PowerDNS Version 4.1.10
* Exact: i.e. `4.3.0`: PowerDNS Version 4.3.0
* `4.0`: PowerDNS Version 4.0.x, latest image build
* `4`: PowerDNS Version 4.x.x, latest image build

View File

@ -70,6 +70,7 @@ CREATE TABLE cryptokeys (
domain_id INT NOT NULL,
flags INT NOT NULL,
active BOOL,
published BOOL DEFAULT 1,
content TEXT,
PRIMARY KEY(id)
) Engine=InnoDB CHARACTER SET 'latin1';