ungleich-mail: add alpine 3.20 version

This commit is contained in:
Nico Schottelius 2024-10-05 14:44:42 +09:00
parent 15c684fa87
commit 071a6adca8
7 changed files with 60 additions and 14 deletions

28
build-version-via-dockerfile.sh Executable file
View file

@ -0,0 +1,28 @@
#!/bin/sh
set -exu
if [ $# -lt 1 ]; then
echo "$0 <container> [push]" >&2
exit 1
fi
container=$1; shift
name=harbor.k8s.ungleich.ch/ungleich-public/${container}
push=""
if [ $# -ge 1 ]; then
push=yes
fi
cd $container
for df in Dockerfile_*; do
version=$(echo $df | cut -d_ -f 2)
tag=${name}:${version}
docker build -t ${tag} -f ${df} .
if [ "$push" ]; then
docker push ${tag}
fi
done

View file

@ -1,8 +0,0 @@
FROM alpine:3.19
RUN apk add --update \
postfix \
dovecot
COPY entrypoint.sh /
ENTRYPOINT /entrypoint.sh

View file

@ -0,0 +1,10 @@
FROM alpine:3.19
RUN apk add --update \
postfix \
dovecot
# COPY entrypoint.sh /
# ENTRYPOINT /entrypoint.sh
RUN postconf maillog_file=/dev/stdout

View file

@ -0,0 +1,7 @@
FROM alpine:3.20
RUN apk add --update \
postfix \
dovecot
RUN postconf maillog_file=/dev/stdout

View file

@ -1,6 +1,14 @@
* Stuff to do * Usage (as of 2024)
** Intro
- Postfix can be started using "/usr/sbin/postfix start-fg"
- Logging is already configured for stdout
** Next todos
*** Add simple authentication support
- so we can be used as a smarthost
* Stuff to do (before 2024)
** PROGRESS Add smtp support (postfix?) ** PROGRESS Add smtp support (postfix?)
** PROGRESS Add imap support ** PROGRESS Add imap support
- maybe later?
** PROGRESS Define where/how to save mails ** PROGRESS Define where/how to save mails
- /data would be fitting - /data would be fitting
** PROGRESS Add db support (?) or not? ** PROGRESS Add db support (?) or not?
@ -8,7 +16,8 @@
- restarts are usually fine - restarts are usually fine
- requires dovecot in same containerx - requires dovecot in same containerx
** TODO Define deployment requirements (such as SPF/DKIM etc) ** TODO Define deployment requirements (such as SPF/DKIM etc)
** TODO add stdout logging ** DONE add stdout logging
CLOSED: [2024-10-05 Sat 14:37]
Logging to stdout is useful when Postfix runs in a container, as it eliminates a syslogd dependency. Logging to stdout is useful when Postfix runs in a container, as it eliminates a syslogd dependency.

View file

@ -0,0 +1,4 @@
#!/bin/sh
# Just for reference - we inject commands directly via kubernetes
/usr/sbin/postfix start-fg

View file

@ -1,4 +0,0 @@
#!/bin/sh
/usr/sbin/postfix start
/usr/sbin/dovecot