stable

Clone or download

Read-only

Install and run with encrypted connection to database

The mysql-init command now generates the tuleap db configuration according to various options. I choose to make the configuration of the encryption at install only available via env variables because the current main target for this usage will be in containers so configuration stuff will be given with ENV anyway. Plus I really didn't want to add new configuration options to setup.el7.sh. In order to test you can spin a DB that will require encrypted connection. From base of tuleap sources you can run: docker run --name db-tee --rm -ti \ -e MYSQL_ROOT_PASSWORD=welcome0 \ -v $PWD/src/etc/tuleap-mysql57-dev.cnf:/etc/mysql/mysql.conf.d/tuleap.cnf:ro \ -v $PWD/src/etc/tuleap-mysql57-ssl.cnf:/etc/mysql/mysql.conf.d/tuleap-ssl.cnf:ro \ mysql:5.7 Then with the IP address of this container docker run -ti --rm --name=docker-tee \ -e TULEAP_FQDN=tuleap.local \ -e DB_HOST=172.17.0.2 \ -e DB_ADMIN_USER=root \ -e DB_ADMIN_PASSWORD=welcome0 \ -e TULEAP_DB_SSL_MODE=no-verify \ -v $PWD:/usr/share/tuleap enalean/tuleap-aio:centos7 \ /usr/share/tuleap/plugins/tee_container/bin/tee-container.php run And enjoy your tests. Please note that for python & perl related tests you will need to add mysql certs to tuleap container trusted certs. Pick `ca.pem` and `server-cert.pem` from `/var/lib/mysql` in db container and put them in `/etc/pki/ca-trust/source/anchors/` and run `update-ca-trust extract` Part of story #14768 have a tuleap enterprise edition docker image production ready Change-Id: Ibdeae3eb211ce459ed73aae8e56fb7f21afe40f1

Modified Files

Name
M src/etc/local.inc.dist +1 −1 Go to diff View file
M src/etc/tuleap-mysql57-dev.cnf +0 −7 Go to diff View file
A src/etc/tuleap-mysql57-ssl.cnf +8 −0 Go to diff View file
M src/forgeupgrade/ForgeUpgrade_Db_Driver.php +26 −1 Go to diff View file
M src/tuleap-cfg/Command/SetupMysql/ConnectionManager.php +4 −7 Go to diff View file
A src/tuleap-cfg/Command/SetupMysql/ConnectionManagerInterface.php +47 −0 Go to diff View file
M src/tuleap-cfg/Command/SetupMysql/MysqlCommandHelper.php +35 −9 Go to diff View file
M src/tuleap-cfg/Command/SetupMysqlCommand.php +1 −1 Go to diff View file
M src/tuleap-cfg/Command/SetupMysqlInitCommand.php +143 −17 Go to diff View file
M src/tuleap-cfg/tuleap-cfg.php +1 −1 Go to diff View file
M src/utils/tuleap.php +1 −1 Go to diff View file
A tests/phpunit/tuleap-cfg/Command/SetupMysqlInitCommandTest.php +202 −0 Go to diff View file
M tests/rest/bin/setup.sh +5 −8 Go to diff View file
M tools/setup.el7.sh +6 −9 Go to diff View file
M tools/setup.sh +5 −12 Go to diff View file
M tools/setup/el7/include/setup.sh +5 −10 Go to diff View file