]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
enable doq and doh3 in dockerfile-dnsdist 13674/head
authordmachard <5562930+dmachard@users.noreply.github.com>
Fri, 29 Dec 2023 17:32:45 +0000 (18:32 +0100)
committerdmachard <5562930+dmachard@users.noreply.github.com>
Fri, 29 Dec 2023 17:32:45 +0000 (18:32 +0100)
Dockerfile-dnsdist

index e89215d40b8db9b1aa01b9061ad98ffac4bd7bb8..c9cf09a94eef8beead956cfdec1edb21dc496259 100644 (file)
@@ -47,6 +47,12 @@ RUN mkdir /libh2o && cd /libh2o && \
       CFLAGS='-fPIC' cmake -DWITH_PICOTLS=off -DWITH_BUNDLED_SSL=off -DWITH_MRUBY=off -DCMAKE_INSTALL_PREFIX=/opt ./h2o-2.2.6-pdns2 && \
       make install
 
+RUN mkdir /quiche && cd /quiche && \
+    apt-get install -y libclang-dev && \
+    apt-get clean && \
+    /source/builder-support/helpers/install_rust.sh && \
+    /source/builder-support/helpers/install_quiche.sh
+
 RUN mkdir /build && \
     LUAVER=$([ -z "${NO_LUA_JIT##*$(dpkg --print-architecture)*}" ] && echo 'lua5.3' || echo 'luajit') && \
     ./configure \
@@ -59,10 +65,16 @@ RUN mkdir /build && \
       --enable-dns-over-https \
       --with-re2 \
       --with-h2o \
+      --enable-dns-over-quic \
+      --enable-dns-over-http3 \
+      --with-quiche \
       PKG_CONFIG_PATH=/opt/lib/pkgconfig && \
     make clean && \
     make $MAKEFLAGS install DESTDIR=/build && make clean && \
-    strip /build/usr/local/bin/*
+    strip /build/usr/local/bin/* &&\
+    mkdir -p /build/usr/lib/ && \
+    cp -rf /usr/lib/libdnsdist-quiche.so /build/usr/lib/
+
 RUN cd /tmp && mkdir /build/tmp/ && mkdir debian && \
     echo 'Source: docker-deps-for-pdns' > debian/control && \
     dpkg-shlibdeps /build/usr/local/bin/dnsdist && \