stable
Clone or download
This commit bring the ability to define the Site Administrator password as an environment variable at container init. In most basic scenario it means that you can have a container without autogenerated DB passwords. There are still areas not covered (nss password for instance) that will be done in later commit. It's not yet possible to change the password of site admin either. Most of the work here was done to keep classic setup and container setup as close as possible. As stated in the associate Story, we won't be able to only run with Environment Variables (without variable files like local.inc or database.inc written down) because it requires too much change (fpm cleans env, sudo will do it as well, etc) that are not worth the risk of letting stuff of the radar. So the strategy will be to store in DB (later) or write down on filesystem (now + "CannotBeModified" variables). Finally, I choose to keep the database.inc format even if generated out of the Environment Variables to limit the amount of changes on ForgeConfig. Part-of: story #22708 flexibility in the management of Tuleap Configuration Change-Id: Id4e8df7eb69a8b770acf507ab7c54a709dc2fc63
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/tee_container/docker/docker-compose.yml | +4 | −1 | Go to diff View file |
M | plugins/tee_container/include/StartContainerCommand.php | +19 | −13 | Go to diff View file |
M | src/common/Config/ForgeConfig.php | +8 | −3 | Go to diff View file |
M | src/common/DB/DBConfig.php | +4 | −1 | Go to diff View file |
M | src/tuleap-cfg/Command/Docker/DataPersistence.php | +6 | −0 | Go to diff View file |
M | src/tuleap-cfg/Command/Docker/Tuleap.php | +26 | −12 | Go to diff View file |
A | src/tuleap-cfg/Command/SetupMysql/DBSetupParameters.php | +177 | −0 | Go to diff View file |
M | src/tuleap-cfg/Command/SetupMysql/DatabaseConfigurator.php | +112 | −23 | Go to diff View file |
A | src/tuleap-cfg/Command/SetupMysql/MissingMandatoryParameterException.php | +33 | −0 | Go to diff View file |
M | src/tuleap-cfg/Command/SetupMysqlInitCommand.php | +54 | −108 | Go to diff View file |
M | src/tuleap-cfg/Command/StartCommunityEditionContainerCommand.php | +22 | −21 | Go to diff View file |
M | src/tuleap-cfg/tuleap-cfg.php | +4 | −1 | Go to diff View file |
M | tests/unit/common/Config/ForgeConfigTest.php | +16 | −0 | Go to diff View file |
A | tests/unit/tuleap-cfg/Command/SetupMysql/DBSetupParametersTest.php | +92 | −0 | Go to diff View file |
M | tests/unit/tuleap-cfg/Command/SetupMysqlInitCommandAzureTest.php | +3 | −2 | Go to diff View file |
M | tests/unit/tuleap-cfg/Command/SetupMysqlInitCommandTest.php | +3 | −2 | Go to diff View file |
M | tools/docker/tuleap-community-edition/docker-compose.yml | +10 | −3 | Go to diff View file |
M | tools/setup.el7.sh | +3 | −2 | Go to diff View file |