Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dovecot 2.3.20 #13850

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Dovecot 2.3.20 #13850

wants to merge 1 commit into from

Conversation

cmouse
Copy link

@cmouse cmouse commented Jan 9, 2023

Add Dovecot to official images list.

PR for docs docker-library/docs#2258

Closes dovecot/docker#2

Checklist for Review

NOTE: This checklist is intended for the use of the Official Images maintainers both to track the status of your PR and to help inform you and others of where we're at. As such, please leave the "checking" of items to the repository maintainers. If there is a point below for which you would like to provide additional information or note completion, please do so by commenting on the PR. Thanks! (and thanks for staying patient with us ❤️)

  • associated with or contacted upstream?
  • available under an OSI-approved license?
  • does it fit into one of the common categories? ("service", "language stack", "base distribution")
  • is it reasonably popular, or does it solve a particular use case well?
  • does a documentation PR exist? (should be reviewed and merged at roughly the same time so that we don't have an empty image page on the Hub for very long)
  • official-images maintainer dockerization review for best practices and cache gotchas/improvements (ala the official review guidelines)?
  • 2+ official-images maintainer dockerization review?
  • existing official images have been considered as a base? (ie, if foobar needs Node.js, has FROM node:... instead of grabbing node via other means been considered?)
  • if FROM scratch, tarballs only exist in a single commit within the associated history?
  • passes current tests? any simple new tests that might be appropriate to add? (https://github.com/docker-library/official-images/tree/master/test)

@github-actions

This comment has been minimized.

@cmouse
Copy link
Author

cmouse commented Jul 14, 2023

any news?

@cmouse
Copy link
Author

cmouse commented Sep 15, 2023

Hi! Updated this merge request with our latest release - perhaps it gets finally included?

@github-actions
Copy link

Diff for 1136717:
diff --git a/_bashbrew-arches b/_bashbrew-arches
index 8b13789..21d5bd8 100644
--- a/_bashbrew-arches
+++ b/_bashbrew-arches
@@ -1 +1 @@
-
+amd64
diff --git a/_bashbrew-cat b/_bashbrew-cat
index bdfae4a..82d007e 100644
--- a/_bashbrew-cat
+++ b/_bashbrew-cat
@@ -1 +1,10 @@
-Maintainers: New Image! :D (@docker-library-bot)
+Maintainers: Aki Tuomi <[email protected]> (@cmouse), Timo Sirainen <[email protected]> (@sirainen)
+GitRepo: https://github.com/dovecot/docker.git
+
+Tags: 2.3.20
+GitCommit: 63d466c1dd6c8eff3f53f50b70f2bef7247a1338
+Directory: 2.3.20
+
+Tags: 2.3.21, 2.3, latest
+GitCommit: 63d466c1dd6c8eff3f53f50b70f2bef7247a1338
+Directory: 2.3.21
diff --git a/_bashbrew-list b/_bashbrew-list
index e69de29..9d2f927 100644
--- a/_bashbrew-list
+++ b/_bashbrew-list
@@ -0,0 +1,4 @@
+dovecot:2.3
+dovecot:2.3.20
+dovecot:2.3.21
+dovecot:latest
diff --git a/_bashbrew-list-build-order b/_bashbrew-list-build-order
index e69de29..1bf2783 100644
--- a/_bashbrew-list-build-order
+++ b/_bashbrew-list-build-order
@@ -0,0 +1,2 @@
+dovecot:2.3.20
+dovecot:latest
diff --git a/dovecot_2.3.20/Dockerfile b/dovecot_2.3.20/Dockerfile
new file mode 100644
index 0000000..fad976f
--- /dev/null
+++ b/dovecot_2.3.20/Dockerfile
@@ -0,0 +1,54 @@
+FROM debian:11
+
+LABEL org.opencontainers.image.authors="[email protected]"
+
+ENV container=docker \
+    LC_ALL=C
+ARG DEBIAN_FRONTEND=noninteractive
+
+ADD dovecot.gpg /etc/apt/trusted.gpg.d
+ADD dovecot.list /etc/apt/sources.list.d
+
+RUN apt-get -y update && apt-get -y install \
+  tini \
+  dovecot-core \
+  dovecot-gssapi \
+  dovecot-imapd \
+  dovecot-ldap \
+  dovecot-lmtpd \
+  dovecot-lua \
+  dovecot-managesieved \
+  dovecot-mysql \
+  dovecot-pgsql \
+  dovecot-pop3d \
+  dovecot-sieve \
+  dovecot-solr \
+  dovecot-sqlite \
+  dovecot-submissiond \
+  ca-certificates \
+  ssl-cert && \
+  rm -rf /var/lib/apt/lists && \
+  groupadd -g 1000 vmail && \
+  useradd -u 1000 -g 1000 vmail -d /srv/vmail && \
+  passwd -l vmail && \
+  rm -rf /etc/dovecot && \
+  mkdir /srv/mail && \
+  chown vmail:vmail /srv/mail && \
+  make-ssl-cert generate-default-snakeoil && \
+  mkdir /etc/dovecot && \
+  ln -s /etc/ssl/certs/ssl-cert-snakeoil.pem /etc/dovecot/cert.pem && \
+  ln -s /etc/ssl/private/ssl-cert-snakeoil.key /etc/dovecot/key.pem
+
+ADD dovecot.conf /etc/dovecot/dovecot.conf
+
+EXPOSE 24
+EXPOSE 110
+EXPOSE 143
+EXPOSE 587
+EXPOSE 990
+EXPOSE 993
+EXPOSE 4190
+
+VOLUME ["/etc/dovecot", "/srv/mail"]
+ENTRYPOINT ["/usr/bin/tini", "--"]
+CMD ["/usr/sbin/dovecot", "-F"]
diff --git a/dovecot_2.3.20/dovecot.conf b/dovecot_2.3.20/dovecot.conf
new file mode 100644
index 0000000..f79a672
--- /dev/null
+++ b/dovecot_2.3.20/dovecot.conf
@@ -0,0 +1,40 @@
+## You should mount /etc/dovecot if you want to
+## manage this file
+
+mail_home=/srv/mail/%Lu
+mail_location=sdbox:~/Mail
+mail_uid=1000
+mail_gid=1000
+
+protocols = imap pop3 submission sieve lmtp
+
+first_valid_uid = 1000
+last_valid_uid = 1000
+
+passdb {
+  driver = static
+  args = password=pass
+}
+
+ssl=yes
+ssl_cert=<cert.pem
+ssl_key=<key.pem
+
+namespace {
+  inbox = yes
+  separator = /
+}
+
+service lmtp {
+  inet_listener {
+    port = 24
+  }
+}
+
+listen = *
+
+log_path=/dev/stdout
+info_log_path=/dev/stdout
+debug_log_path=/dev/stdout
+
+!include_try /etc/dovecot/conf.d/*.conf
diff --git a/dovecot_2.3.20/dovecot.gpg b/dovecot_2.3.20/dovecot.gpg
new file mode 100644
index 0000000..e73ab31
Binary files /dev/null and b/dovecot_2.3.20/dovecot.gpg differ
diff --git a/dovecot_2.3.20/dovecot.list b/dovecot_2.3.20/dovecot.list
new file mode 100644
index 0000000..7f2774a
--- /dev/null
+++ b/dovecot_2.3.20/dovecot.list
@@ -0,0 +1 @@
+deb http://repo.dovecot.org/ce-2.3.20/debian/bullseye bullseye main
diff --git a/dovecot_latest/Dockerfile b/dovecot_latest/Dockerfile
new file mode 100644
index 0000000..1aa107c
--- /dev/null
+++ b/dovecot_latest/Dockerfile
@@ -0,0 +1,54 @@
+FROM debian:11-slim
+
+LABEL org.opencontainers.image.authors="[email protected]"
+
+ENV container=docker \
+    LC_ALL=C
+ARG DEBIAN_FRONTEND=noninteractive
+
+ADD dovecot.gpg /etc/apt/keyrings/dovecot.gpg
+ADD dovecot.list /etc/apt/sources.list.d
+
+RUN apt-get -y update && apt-get -y install \
+  tini \
+  dovecot-core \
+  dovecot-gssapi \
+  dovecot-imapd \
+  dovecot-ldap \
+  dovecot-lmtpd \
+  dovecot-lua \
+  dovecot-managesieved \
+  dovecot-mysql \
+  dovecot-pgsql \
+  dovecot-pop3d \
+  dovecot-sieve \
+  dovecot-solr \
+  dovecot-sqlite \
+  dovecot-submissiond \
+  ca-certificates \
+  ssl-cert && \
+  rm -rf /var/lib/apt/lists && \
+  groupadd -g 1000 vmail && \
+  useradd -u 1000 -g 1000 vmail -d /srv/vmail && \
+  passwd -l vmail && \
+  rm -rf /etc/dovecot && \
+  mkdir /srv/mail && \
+  chown vmail:vmail /srv/mail && \
+  make-ssl-cert generate-default-snakeoil && \
+  mkdir /etc/dovecot && \
+  ln -s /etc/ssl/certs/ssl-cert-snakeoil.pem /etc/dovecot/cert.pem && \
+  ln -s /etc/ssl/private/ssl-cert-snakeoil.key /etc/dovecot/key.pem
+
+ADD dovecot.conf /etc/dovecot/dovecot.conf
+
+EXPOSE 24
+EXPOSE 110
+EXPOSE 143
+EXPOSE 587
+EXPOSE 990
+EXPOSE 993
+EXPOSE 4190
+
+VOLUME ["/etc/dovecot", "/srv/mail"]
+ENTRYPOINT ["/usr/bin/tini", "--"]
+CMD ["/usr/sbin/dovecot", "-F"]
diff --git a/dovecot_latest/dovecot.conf b/dovecot_latest/dovecot.conf
new file mode 100644
index 0000000..f79a672
--- /dev/null
+++ b/dovecot_latest/dovecot.conf
@@ -0,0 +1,40 @@
+## You should mount /etc/dovecot if you want to
+## manage this file
+
+mail_home=/srv/mail/%Lu
+mail_location=sdbox:~/Mail
+mail_uid=1000
+mail_gid=1000
+
+protocols = imap pop3 submission sieve lmtp
+
+first_valid_uid = 1000
+last_valid_uid = 1000
+
+passdb {
+  driver = static
+  args = password=pass
+}
+
+ssl=yes
+ssl_cert=<cert.pem
+ssl_key=<key.pem
+
+namespace {
+  inbox = yes
+  separator = /
+}
+
+service lmtp {
+  inet_listener {
+    port = 24
+  }
+}
+
+listen = *
+
+log_path=/dev/stdout
+info_log_path=/dev/stdout
+debug_log_path=/dev/stdout
+
+!include_try /etc/dovecot/conf.d/*.conf
diff --git a/dovecot_latest/dovecot.gpg b/dovecot_latest/dovecot.gpg
new file mode 100644
index 0000000..e73ab31
Binary files /dev/null and b/dovecot_latest/dovecot.gpg differ
diff --git a/dovecot_latest/dovecot.list b/dovecot_latest/dovecot.list
new file mode 100644
index 0000000..0be8a6a
--- /dev/null
+++ b/dovecot_latest/dovecot.list
@@ -0,0 +1 @@
+deb [signed-by=/etc/apt/keyrings/dovecot.gpg] https://repo.dovecot.org/ce-2.3.21/debian/bullseye bullseye main

@yosifkit
Copy link
Member

Hello! ✨

Thanks for your interest in contributing to the official images program. 💭

As you may have noticed, we've usually got a pretty decently sized queue of new images (not to mention image updates and maintenance of images under @docker-library which are maintained by the core official images team). As such, it may be some time before we get to reviewing this image (image updates get priority both because users expect them and because reviewing new images is a more involved process than reviewing updates), so we apologize in advance! Please be patient with us -- rest assured, we've seen your PR and it's in the queue. ❤️

Thanks! 💖 💙 💚 ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Publish to official?
2 participants