Skip to content

External mail relay configuration - #634

Open
fboule wants to merge 5 commits into
monarc-project:masterfrom
fboule:mailrelay
Open

fboule wants to merge 5 commits into
monarc-project:masterfrom
fboule:mailrelay

Conversation

@fboule

@fboule fboule commented Oct 15, 2026

Copy link
Copy Markdown

In the scope of the OpenShift/Kubernetes integration, the local.php script has been updated to add external mail relay support via environment variables.

For use with OpenShift or Kubernetes, the images must follow some rules
for compatiblity purpose. The build must be reproducible, hence fixed
package versions should be used (the base image packages should not be
updated for instance). Besides, additional packages must be installed at
build time and not at runtime, therefore the database initialization and
the new packages installation have been separated.

The main changes are:
- The use of the Debian Bookworm base base image.
- The scripts have been split, to only keep the database initialization
  in the entrypoint and the packages installation in the Dockerfile
- The configuration files such as SMTP server is parametrized at build
  time, but can be overwritten by configmap at runtime.
- Other runtime parameters as secrets and DB host name are read from the
  environment variables.
The base mariadb 10.11 image is rebuilt to startup with default
arguments and is embedded with the Monarc database initialization
scripts.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants