Groupware: upgrade Stalwart to 0.16#2714
Open
pbleser-oc wants to merge 1 commit into
Open
Conversation
* Stalwart 0.16 introduces a different way of configuring the service,
requiring to first bootstrap in recovery mode, then using the
stalwart-cli (which is distributed separately) to load a NJSON file
that contains the configuration objects, and then restarting Stalwart
itself but in regular mode
* the TOML configuration file is replaced by a small JSON file in
dev/docker/stalwart/stalwart-config.json, and the JSON configuration
snapshot dev/docker/stalwart/idmldap.json
* the docker-compose.yml has been modified to
- have the stalwart container check for a .initialized file in the
mounted data volume and if that file does not exist, it loops
endlessly until it is there, sleeping 1s in between checks; when
that file has been created by the stalwart-import container; and
when that happens, the stalwart process is stopped and restarted in
regular mode
- have an additional container stalwart-import that also mounts the
stalwart-data volume, and if the .initialized file does not exist
there yet, waits for the stalwart process to be ready (checking for
its healthz endpoint), and when that happens, it imports the
configuration snapshot using stalwart-cli, and then creates the
.initialized file
* since stalwart-cli is currently not distributed as a docker
container, we create one on-the-fly using an inline dockerfile in the
docker-compose.yml
* changed the built-in IDM LDAP's authentication password as Stalwart
is configured to expect that to be 'admin' instead of
'some-ldap-reva-password', which will make porting changes between
this Docker Compose project and the opencloud_full one that is used
for developing OpenCloud backend services a lot easier
* added OC_LDAP_CACERT to point to the LDAP certificate file
* added GROUPWARE_JMAP_BASE_URL, GROUPWARE_JMAP_MASTER_USERNAME and
GROUPWARE_JMAP_MASTER_PASSWORD environment variables to opencloud
containers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Apply a series of changes to the Docker Compose project to run and initialize Stalwart >= 0.16, which is a different process from previous versions