Skip to content

Commit

Permalink
dnsdist Docker: enable h2o again, using our fork
Browse files Browse the repository at this point in the history
(cherry picked from commit de02bfc)
  • Loading branch information
Habbie committed Oct 11, 2023
1 parent d68a81a commit c315fe0
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Dockerfile-dnsdist
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@ RUN if [ "${DOCKER_FAKE_RELEASE}" = "YES" ]; then \
fi && \
BUILDER_MODULES=dnsdist autoreconf -vfi


RUN mkdir /libh2o && cd /libh2o && \
apt-get update && apt-get install -y cmake curl libssl-dev zlib1g-dev && \
curl -f -L https://github.com/PowerDNS/h2o/archive/refs/tags/v2.2.6+pdns2.tar.gz | tar xz && \
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 /build && \
LUAVER=$([ -z "${NO_LUA_JIT##*$(dpkg --print-architecture)*}" ] && echo 'lua5.3' || echo 'luajit') && \
./configure \
Expand All @@ -50,7 +57,9 @@ RUN mkdir /build && \
--enable-dnscrypt \
--enable-dns-over-tls \
--enable-dns-over-https \
--with-re2 && \
--with-re2 \
--with-h2o \
PKG_CONFIG_PATH=/opt/lib/pkgconfig && \
make clean && \
make $MAKEFLAGS install DESTDIR=/build && make clean && \
strip /build/usr/local/bin/*
Expand Down

0 comments on commit c315fe0

Please sign in to comment.