Pre-setup and post-setup tasks
authorPablo Zmdl <redacted>
Thu, 2 Oct 2025 16:38:10 +0000 (18:38 +0200)
committerPablo Zmdl <redacted>
Mon, 3 Nov 2025 13:19:08 +0000 (14:19 +0100)
commit1d8ea95d37f10903197f7d98b0b038e8805e285f
treea36f6c5df440f8ab59f89bb88ae78553725c259e
parentefb91c27efdc282e39e286143eeb9046cf5e5d3a
Pre-setup and post-setup tasks

All executable files present in /entrypoint-tasks/pre-setup/ and
/entrypoint-tasks/post-setup/ are run at the beginning
or at the end, respectively, of the actual entrypoint-script.

Each of the executed files receive the CMD given to the container as their
arguments. This allows e.g. to change a plugin's config, or install a
technical requirement of a plugin that is to be installed.

This feature is not implemented in the images for Roundcube v1.5, since
they are not well maintained and will be dropped soon, anyways.
13 files changed:
.github/workflows/test-1.5.yml
README.md
apache/docker-entrypoint.sh
fpm-alpine/docker-entrypoint.sh
fpm/docker-entrypoint.sh
templates/docker-entrypoint.sh
tests/docker-compose.test-apache-postgres.yml
tests/docker-compose.test-fpm-postgres.yml
tests/post-setup/script.sh [new file with mode: 0755]
tests/pre-setup/a-script [new file with mode: 0755]
tests/pre-setup/b-not [new file with mode: 0644]
tests/pre-setup/c-check [new file with mode: 0755]
tests/run.sh
git clone https://git.99rst.org/PROJECT