ungleich-mail: add alpine 3.20 version
This commit is contained in:
parent
15c684fa87
commit
071a6adca8
7 changed files with 60 additions and 14 deletions
28
build-version-via-dockerfile.sh
Executable file
28
build-version-via-dockerfile.sh
Executable 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
|
|
@ -1,8 +0,0 @@
|
|||
FROM alpine:3.19
|
||||
|
||||
RUN apk add --update \
|
||||
postfix \
|
||||
dovecot
|
||||
|
||||
COPY entrypoint.sh /
|
||||
ENTRYPOINT /entrypoint.sh
|
10
ungleich-mail/Dockerfile_3.19
Normal file
10
ungleich-mail/Dockerfile_3.19
Normal 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
|
7
ungleich-mail/Dockerfile_3.20
Normal file
7
ungleich-mail/Dockerfile_3.20
Normal file
|
@ -0,0 +1,7 @@
|
|||
FROM alpine:3.20
|
||||
|
||||
RUN apk add --update \
|
||||
postfix \
|
||||
dovecot
|
||||
|
||||
RUN postconf maillog_file=/dev/stdout
|
|
@ -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 imap support
|
||||
- maybe later?
|
||||
** PROGRESS Define where/how to save mails
|
||||
- /data would be fitting
|
||||
** PROGRESS Add db support (?) or not?
|
||||
|
@ -8,7 +16,8 @@
|
|||
- restarts are usually fine
|
||||
- requires dovecot in same containerx
|
||||
** 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.
|
||||
|
||||
|
|
4
ungleich-mail/archived_entrypoint.sh
Normal file
4
ungleich-mail/archived_entrypoint.sh
Normal file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Just for reference - we inject commands directly via kubernetes
|
||||
/usr/sbin/postfix start-fg
|
|
@ -1,4 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
/usr/sbin/postfix start
|
||||
/usr/sbin/dovecot
|
Loading…
Reference in a new issue