From 86079429b3e852ddc717bcbe24e93e8a7a1af7ec Mon Sep 17 00:00:00 2001 From: DerLinkman Date: Mon, 18 Jul 2022 14:24:46 +0200 Subject: [PATCH] Using Stable Dovecot Builds for flatcurve --- data/Dockerfiles/dovecot/Dockerfile | 30 +++++++++++++------- data/conf/dovecot/dovecot-fts-flatcurve.conf | 2 +- 2 files changed, 20 insertions(+), 12 deletions(-) diff --git a/data/Dockerfiles/dovecot/Dockerfile b/data/Dockerfiles/dovecot/Dockerfile index 010c9b10..25ec8a65 100644 --- a/data/Dockerfiles/dovecot/Dockerfile +++ b/data/Dockerfiles/dovecot/Dockerfile @@ -105,6 +105,7 @@ RUN groupadd -g 5000 vmail \ zlib1g-dev \ pkg-config \ libsqlite3-dev \ + liblua5.3-dev \ && dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')" \ && wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch" \ && chmod +x /usr/local/bin/gosu \ @@ -124,26 +125,33 @@ RUN groupadd -g 5000 vmail \ # dovecot-imapd \ # dovecot-dev -RUN cd /tmp && git clone https://github.com/dovecot/core.git dovecot && cd dovecot \ +RUN cd /tmp && git clone --depth 1 --branch release-2.3 https://github.com/dovecot/core.git dovecot/core && cd dovecot/core \ && ./autogen.sh \ - && PANDOC=false ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --with-ssldir=/etc/ssl --enable-maintainer-mode --with-mysql --with-ldap --with-zstd --with-lz4 --with-ssl=openssl --with-notify=inotify --with-bzlib --with-zlib --enable-hardening --with-stemmer --with-textcat --with-icu \ - && make && make install && make clean + && PANDOC=false ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --with-ssldir=/etc/ssl --enable-maintainer-mode --with-sql=yes --with-lua=yes --with-mysql --with-ldap=yes --with-zstd --with-lz4 --with-ssl=openssl --with-notify=inotify --with-bzlib --with-zlib --enable-hardening --with-stemmer --with-textcat --with-icu \ + && make -j6 \ + && make install \ + && make clean -RUN cd /tmp && git clone https://github.com/dovecot/pigeonhole && cd pigeonhole \ +RUN cd /tmp && git clone --depth 1 --branch release-0.5 https://github.com/dovecot/pigeonhole dovecot/pigeonhole && cd dovecot/pigeonhole \ && ./autogen.sh \ && ./configure --with-dovecot=/usr/lib/dovecot --with-managesieve\ - && make && make install && make clean + && make -j6 \ + && make install \ + && make clean RUN cd /tmp && wget https://oligarchy.co.uk/xapian/${XAPIAN}/xapian-core-${XAPIAN}.tar.xz && tar xf xapian-core-${XAPIAN}.tar.xz && cd xapian-core-${XAPIAN} \ && ./configure --prefix=/opt \ - && make && make install && make clean + && make -j6 \ + && make install \ + && make clean -#RUN cd /tmp && git clone https://github.com/slusarz/dovecot-fts-flatcurve.git && cd dovecot-fts-flatcurve \ -# && ./autogen.sh \ -# && ./configure --with-dovecot=/usr/lib/dovecot \ -# && make \ -# && make install +RUN cd /tmp && git clone https://github.com/slusarz/dovecot-fts-flatcurve.git dovecot/flatcurve && cd dovecot/flatcurve \ + && ./autogen.sh \ + && ./configure --with-dovecot=/usr/lib/dovecot \ + && make -j6 \ + && make install \ + && make clean RUN pip3 install mysql-connector-python html2text jinja2 redis \ && apt-get autoremove --purge -y \ diff --git a/data/conf/dovecot/dovecot-fts-flatcurve.conf b/data/conf/dovecot/dovecot-fts-flatcurve.conf index 1ed5809f..46ea351f 100644 --- a/data/conf/dovecot/dovecot-fts-flatcurve.conf +++ b/data/conf/dovecot/dovecot-fts-flatcurve.conf @@ -13,7 +13,7 @@ plugin { fts_flatcurve_min_term_size = 2 fts_flatcurve_optimize_limit = 10 fts_flatcurve_rotate_size = 5000 - fts_flatcurve_rotate_time = 5000s + fts_flatcurve_rotate_time = 5000 fts_flatcurve_substring_search = no }