Commit graph

282 commits

Author SHA1 Message Date
Bojan Čekrlić
b56239bb74 Upd: Add docket to dependabot. 2023-12-29 15:20:15 +01:00
Bojan Čekrlić
72988ddf47 Fix #158: Add copytruncate to logrotate.conf.
From lograte man pages:

> `copytruncate`: Truncate the original log file to zero size in place after creating a copy, instead of moving the old log file and optionally creating a new one.

Why? Because file might be followed by file descriptior (and not name).
So when logrorate rotates the file, Prometheus will follow the old file
(thus receiving no metrics).

By using `comytruncate` we ensure that the followed file is always the
proper one.
2023-12-29 14:39:21 +01:00
Bojan Čekrlić
4b4524940e Fix #160: Update documentation, add info about smtpd_tls_security_level change 2023-12-29 14:37:05 +01:00
Joe Krill
553874a056 Fix ServiceMonitor selector 2023-12-29 08:56:58 +01:00
Bojan Čekrlić
b317e68e28 Fix for #163: Remove NodePort from headless service 2023-12-29 08:51:20 +01:00
Bojan Čekrlić
806eef5bb9 Fix for #154: Allow different labels for regular and headless service 2023-11-01 15:38:53 +01:00
Bojan Čekrlić
dcf80ccda3 Fix for #154 2023-11-01 15:04:15 +01:00
Bojan Čekrlić
cccbf7ea65 Fix for #151 2023-11-01 14:33:44 +01:00
Bojan Čekrlić
81e900b3e1 Fix for #152 2023-11-01 12:06:01 +01:00
Bojan Čekrlić
c161f5d018 Fix: Creation of tag for gh-pages on release 2023-10-29 23:58:02 +01:00
Bojan Čekrlić
743d3a0a86 Fix for #147: Update daemon_directory based on running distribution
This image will now automatically reconfigure `daemon_directory` in case
of distrubution switching.

Alpine and Debian/Ubuntu will use different directly layout and if the
user persists `/etc/postfix`, this image will not start if the
distribution changes.
2023-10-29 23:42:37 +01:00
Bojan Čekrlić
5206257d2a Fix: (TEmporary) remove the tests for daemon_directory 2023-10-29 19:50:45 +01:00
Bojan Čekrlić
4b2f48157b Fix: Fix unit tests 2023-10-29 19:25:40 +01:00
Bojan Čekrlić
1d74829eaa Fix: Try fixing the #147 issue and conver it by unit tests 2023-10-29 16:24:22 +01:00
Bojan Čekrlić
25e919644f Fix for #147
This will change the `deamon_directory` if it detects a distribution
change. Some distributions will by default set the `deamon_directory` in
`main.cf` and they differentiate between distributions. Hence, updating
to another distribution causes Postfix to fail starting.
2023-10-29 09:09:51 +01:00
Filipe
f679500d9b Install procps 2023-10-29 08:44:10 +01:00
Bojan Čekrlić
cd8147a55c Fix: Fix building of release 2023-10-27 19:02:22 +02:00
Kroese
fef288268e Use Debian Slim as base image 2023-10-27 19:02:08 +02:00
Bojan Čekrlić
58f20bddcd Upd: Add schemas so we can work (a bit more) offline 2023-10-27 18:16:56 +02:00
Bojan Čekrlić
7ad03edccf Fix: Quote "no" so that it doesn't get interpreted as something else 2023-10-27 18:08:45 +02:00
Bojan Čekrlić
e8c6cd5332 Fix: Make sure to use the proper name for pluginviewer based on distro
Debian/Ubuntu use 'saslpluginviewer`, so we should check for that.
2023-10-27 18:04:36 +02:00
Bojan Čekrlić
945add7f9d Fix: Fix for #144 2023-10-27 17:45:06 +02:00
Bojan Čekrlić
0ff0e80707 Fix: Fix for #146. 2023-10-27 17:44:20 +02:00
Bojan Čekrlić
3370a9d1bc Fix: helm template fixes for prometheus monitoring 2023-10-27 16:02:32 +02:00
Bojan Čekrlić
bcf7dcbfcb Fix: Fix syslog logging to stdout + fix starting of exporter 2023-10-27 15:31:54 +02:00
Bojan Čekrlić
5a09ee5a45 Fix: Fix a typo -> 'reowing' to 'reowning' 2023-10-27 13:48:46 +02:00
Bojan Čekrlić
696422015a Fix: Update how SASL-XOAUTH2 is build (without DOCS) to (re)enable more architectures 2023-10-27 13:47:37 +02:00
Bojan Čekrlić
888ec87871 Fix: Do not build exporter for linux/386
Building fails with a really bad exception:

```
=> ERROR [linux/386 builder 5/8] RUN go mod download                                                                                                         0.5s
------
 > [linux/386 builder 5/8] RUN go mod download:
```
2023-10-27 13:09:54 +02:00
Bojan Čekrlić
33dec82e83 Fix: Refactor build to use native (platform) images and try rebuilding.
Consequentially, `linux/arm/v6` and `linux/riscv6` are not built, as
there are no go images for these.
2023-10-27 13:04:04 +02:00
Bojan Čekrlić
0fcfdcef4b Fix: Remove build for linux/mips64le and linux/arm/v5 for postfix-exporter
There's some weird bug where building the exporter for `linux/mips64le`
and `linux/arm/v5` has go complaining how
(go-systemd)[https://github.com/coreos/go-systemd/tree/main] has no
linux packages.

We're taking a quick-and-ditry route here and hope that nobody's going
to use the postfix-exporter on MIPS / ARMv5, which hopefully won't be such a big
issue.
2023-10-27 12:59:59 +02:00
Bojan Čekrlić
a2ee7e72bb Fix: Remove linux/arm/v6 from Alpine build, as it doesn't have the PANDOC or CABAL packages 2023-10-27 12:44:54 +02:00
Bojan Čekrlić
b3c6fafa4d Fix: Fix integration tests with the new sasl-build script 2023-10-27 12:39:06 +02:00
Bojan Čekrlić
bb5a9f3e24 Fix: Mising pipe (|) symbol in the translation of TARGETVARIANT to GOARM 2023-10-27 12:28:18 +02:00
Bojan Čekrlić
b343a7b3cd Fix: Return from trying to build pandoc if install is successful 2023-10-27 12:27:13 +02:00
Bojan Čekrlić
a23f0a34ed Fix: Backslashes need to be double-escaped in Dockerfile 2023-10-27 12:25:07 +02:00
Bojan Čekrlić
c60c65cfd4 Fix: Fix syntax error in sasl-build.sh 2023-10-27 12:23:56 +02:00
Bojan Čekrlić
19dd690641 Fix: Fix build for differrent archs, make Debian default image 2023-10-27 12:21:57 +02:00
Bojan Čekrlić
335c7e949a Fix: Fix building of Postfix exporter with newer version of Go and other architectures
Build should be faster now as well, as it's being built on the build
platform and not through QEMU.
2023-10-27 11:24:40 +02:00
Bojan Čekrlić
2082f159f8 Fix: Remove MIPS64LE from postfix-exporter build
It fails with:
> `.0.175 /bin/sh: 1: go: Exec format error`
2023-10-27 11:01:04 +02:00
Bojan Čekrlić
09b3eb651b Fix: Do not build for RISC V ATM 2023-10-27 10:56:03 +02:00
Bojan Čekrlić
c3f909f2ec Fix: Fix DNS examples and tests 2023-10-27 10:53:59 +02:00
Bojan Čekrlić
12607b8b68 Fix: Fix How DNS policy and Config is injected into pod
Of course, the issue was YAML indending and spacing.
2023-10-27 10:49:00 +02:00
Bojan Čekrlić
2d21a4f908 Upd: Add Debian building to the pipeline 2023-10-27 10:31:10 +02:00
Bojan Čekrlić
b45c4ac11a Upd: Update SASL XOAuth2 to v0.24 2023-10-27 09:50:39 +02:00
Bojan Čekrlić
d300d9b401 Upd: Allow for setting the DNS policy for the pod 2023-10-27 09:50:22 +02:00
Bojan Čekrlić
b90b336d04 Fix: Remove unneccessary dependendancy on external logrotate image
We now include logrotate in the the basic image. This does -- up to a
point -- reduce the "separation of concerns", but it simplifies image
management considerably and removes an unneccessary dependency on a
third-party container.
2023-10-27 09:38:54 +02:00
Bojan Čekrlić
5fb369a82f Fix: Update logrorate build 2023-10-27 09:12:42 +02:00
Bojan Čekrlić
6da38c0d4e Fix: Big logorotate ourselves for different platforms 2023-10-27 08:51:19 +02:00
Bojan Čekrlić
4ec01297f6 Upd: Add build for linux/s390x. 2023-10-27 08:06:47 +02:00
Bojan Čekrlić
d1dce4b86f Fix: Add missing shell property to "Move cache" command as well 2023-10-27 07:59:06 +02:00