[Dovecot] Dovecot 2.3 from git for temp fixes

[ACME] Use -a switch (thanks to jas8522!)
master
andre.peters 2018-01-14 10:34:06 +01:00
parent 42923698fd
commit 38aaeeb30b
4 changed files with 20 additions and 29 deletions

View File

@ -4,30 +4,14 @@ LABEL maintainer "Andre Peters <andre.peters@servercow.de>"
RUN apk add --update --no-cache \ RUN apk add --update --no-cache \
bash \ bash \
acme-client \
curl \ curl \
openssl \ openssl \
bind-tools \ bind-tools \
jq \ jq \
libressl-dev \
libbsd-dev \
libseccomp-dev \
mariadb-client \ mariadb-client \
tini \
make \
gcc \
libressl \
libc-dev \
redis \ redis \
linux-headers \ tini
ca-certificates \
&& curl -s https://kristaps.bsd.lv/acme-client/snapshots/acme-client-portable.tgz | tar xfvz - \
&& cd acme-client-* \
&& sed -i 's/LE-SA-v1.1.1-August-1-2016.pdf/LE-SA-v1.2-November-15-2017.pdf/g' main.c \
&& make \
&& make install \
&& cd .. \
&& rm -rf acme-client-* \
&& apk del libressl-dev libbsd-dev libseccomp-dev libc-dev linux-headers
COPY docker-entrypoint.sh /srv/docker-entrypoint.sh COPY docker-entrypoint.sh /srv/docker-entrypoint.sh

View File

@ -225,6 +225,7 @@ while true; do
ACME_RESPONSE=$(acme-client \ ACME_RESPONSE=$(acme-client \
-v -e -b -N -n \ -v -e -b -N -n \
-a 'https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf' \
-f ${ACME_BASE}/acme/private/account.key \ -f ${ACME_BASE}/acme/private/account.key \
-k ${ACME_BASE}/acme/private/privkey.pem \ -k ${ACME_BASE}/acme/private/privkey.pem \
-c ${ACME_BASE}/acme \ -c ${ACME_BASE}/acme \

View File

@ -5,14 +5,15 @@ ARG DEBIAN_FRONTEND=noninteractive
ENV LC_ALL C ENV LC_ALL C
ENV DOVECOT_VERSION 2.3.0 ENV DOVECOT_VERSION 2.3.0
ENV PIGEONHOLE_VERSION 0.5.0.1 ENV PIGEONHOLE_VERSION 0.5.0.1
ENV ACLOCAL_DIR=m4
ENV ACLOCAL="aclocal -Im4"
RUN apt-get update && apt-get -y --no-install-recommends install \ RUN apt-get update && apt-get -y --no-install-recommends install \
automake \ automake \
autotools-dev \ autotools-dev \
build-essential \ build-essential \
ca-certificates \ ca-certificates \
cpanminus \ cpanminus \
curl \ wget \
default-libmysqlclient-dev \ default-libmysqlclient-dev \
libjson-webtoken-perl \ libjson-webtoken-perl \
libcgi-pm-perl \ libcgi-pm-perl \
@ -53,7 +54,13 @@ RUN apt-get update && apt-get -y --no-install-recommends install \
libproc-processtable-perl \ libproc-processtable-perl \
liburi-perl \ liburi-perl \
lzma-dev \ lzma-dev \
git \
make \ make \
autoconf \
automake \
pkgconf \
libtool \
gettext \
procps \ procps \
supervisor \ supervisor \
cron \ cron \
@ -63,16 +70,15 @@ RUN apt-get update && apt-get -y --no-install-recommends install \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
RUN curl https://www.dovecot.org/releases/2.3/dovecot-$DOVECOT_VERSION.tar.gz | tar xvz \ RUN git clone https://github.com/dovecot/core.git dovecot \
&& cd dovecot-ce-$DOVECOT_VERSION \ && cd dovecot \
&& curl -L -o src/lib-compression/ostream-zlib.c https://raw.githubusercontent.com/dovecot/core/master/src/lib-compression/ostream-zlib.c \ && ./autogen.sh \
&& curl -L -o src/doveadm/doveadm-zlib.c https://raw.githubusercontent.com/dovecot/core/43a6cdb3561dcfc5950542ce62509a7747a977ae/src/doveadm/doveadm-zlib.c \ && PANDOC=false ./configure --enable-maintainer-mode --with-mysql --with-lzma --with-lz4 --with-ssl=openssl --with-notify=inotify --with-storages=mdbox,sdbox,maildir,mbox,imapc,pop3c --with-bzlib --with-zlib \
&& ./configure --with-mysql --with-lzma --with-lz4 --with-ssl=openssl --with-notify=inotify --with-storages=mdbox,sdbox,maildir,mbox,imapc,pop3c --with-bzlib --with-zlib \
&& make -j3 \ && make -j3 \
&& make install \ && make install \
&& make clean \ && make clean \
&& cd .. && rm -rf dovecot-ce-$DOVECOT_VERSION \ && cd .. && rm -rf dovecot \
&& curl https://pigeonhole.dovecot.org/releases/2.3/dovecot-2.3-pigeonhole-$PIGEONHOLE_VERSION.tar.gz | tar xvz \ && wget -O - https://pigeonhole.dovecot.org/releases/2.3/dovecot-2.3-pigeonhole-$PIGEONHOLE_VERSION.tar.gz | tar xvz \
&& cd dovecot-2.3-pigeonhole-$PIGEONHOLE_VERSION \ && cd dovecot-2.3-pigeonhole-$PIGEONHOLE_VERSION \
&& ./configure \ && ./configure \
&& make -j3 \ && make -j3 \

View File

@ -146,7 +146,7 @@ services:
- sogo - sogo
dovecot-mailcow: dovecot-mailcow:
image: mailcow/dovecot:1.15 image: mailcow/dovecot:1.16
build: ./data/Dockerfiles/dovecot build: ./data/Dockerfiles/dovecot
cap_add: cap_add:
- NET_BIND_SERVICE - NET_BIND_SERVICE
@ -260,7 +260,7 @@ services:
depends_on: depends_on:
- nginx-mailcow - nginx-mailcow
- mysql-mailcow - mysql-mailcow
image: mailcow/acme:1.27 image: mailcow/acme:1.28
build: ./data/Dockerfiles/acme build: ./data/Dockerfiles/acme
dns: dns:
- 172.22.1.254 - 172.22.1.254