stable

Clone or download

Read-only

feat(forge-config): Set admin email in the docker image

Re-use $sys_email_admin for default admin email: - site administrator account email - default admin email - catch all email alias There was `TULEAP_EMAIL_ADMIN` variable that can define the forward email for `codendi-admin@$domain-name` (postfix aliases), I removed this variable in favor of TULEAP_SYS_EMAIL_ADMIN as it semanticly targets the same person. This commit changes the way we deal with Configuration during the platform init. Until now we assumed that \ForgeConfig was more or less empty and loaded locally the variables when needed (with store/restore or wrap). There is actually too many usage of ForgeConfig to safely assume that it cannot be init. So Tuleap class will load the configuration, whether it's at init or at restore time. Closes request #21742 Set admin email in the docker image Part of: story #22708 flexibility in the management of Tuleap Configuration Change-Id: I98dd2940d0747898142a4fb6c13816edb47eac9b

Modified Files

Name
M plugins/tee_container/docker/docker-compose.yml +1 −1 Go to diff View file
M src/common/Config/ConfigKeyLegacyBool.php +10 −2 Go to diff View file
M src/common/Config/ForgeConfig.php +42 −3 Go to diff View file
M src/tuleap-cfg/Command/Docker/Postfix.php +20 −20 Go to diff View file
M src/tuleap-cfg/Command/Docker/Tuleap.php +25 −28 Go to diff View file
M src/tuleap-cfg/Command/SetupMysql/DatabaseConfigurator.php +7 −3 Go to diff View file
M src/tuleap-cfg/Command/SetupMysqlInitCommand.php +7 −1 Go to diff View file
M src/tuleap-cfg/Command/SetupTuleap/SetupTuleap.php +1 −15 Go to diff View file
M src/tuleap-cfg/Command/SetupTuleapCommand.php +2 −2 Go to diff View file
M tests/rest/lib/RestBase.php +1 −0 Go to diff View file
A tests/unit/common/Config/ConfigKeyLegacyBoolTest.php +80 −0 Go to diff View file
M tests/unit/common/Config/ForgeConfigTest.php +88 −29 Go to diff View file
M tests/unit/tuleap-cfg/Command/SetupMysqlInitCommandAzureTest.php +7 −0 Go to diff View file
M tests/unit/tuleap-cfg/Command/SetupMysqlInitCommandTest.php +11 −0 Go to diff View file
M tools/setup/el7/include/plugins.sh +4 −0 Go to diff View file