Docker 自动化环境部署(testlink+jekins+redmine)

创建一个网络 

docker network create testlink-network

2)创建mariadb 

docker run -d --name mariadb --env ALLOW_EMPTY_PASSWORD=yes --env MARIADB_USER=bn_testlink --env MARIADB_PASSWORD=bitnami --env MARIADB_DATABASE=bitnami_testlink --network testlink-network --volume E:/mariadb_data:/bitnami/mariadb bitnami/mariadb:latest

3)创建testlink 

docker run -d --name testlink -p 8080:8080 -p 8443:8443 --env ALLOW_EMPTY_PASSWORD=yes --env TESTLINK_DATABASE_USER=bn_testlink --env TESTLINK_DATABASE_PASSWORD=bitnami --env TESTLINK_DATABASE_NAME=bitnami_testlink --network testlink-network --volume E:/testlink_data:/bitnami/testlink bitnami/testlink:latest

4)testlink和数据库默认账号和密码 

User and Site configuration
APACHE_HTTP_PORT_NUMBER: Port used by Apache for HTTP. Default: 8080
APACHE_HTTPS_PORT_NUMBER: Port used by Apache for HTTPS. Default: 8443
TESTLINK_USERNAME: TestLink application username. Default: user
TESTLINK_PASSWORD: TestLink application password. Default: bitnami
TESTLINK_EMAIL: TestLink application email. Default: user@example.com
TESTLINK_LANGUAGE: TestLink default language. Default: en_US
TESTLINK_SKIP_BOOTSTRAP: Whether to skip performing the initial bootstrapping for the application. Default: no
Use an existing database
TESTLINK_DATABASE_HOST: Hostname for MariaDB server. Default: mariadb
TESTLINK_DATABASE_PORT_NUMBER: Port used by MariaDB server. Default: 3306
TESTLINK_DATABASE_NAME: Database name that TestLink will use to connect with the database. Default: bitnami_testlink
TESTLINK_DATABASE_USER: Database user that TestLink will use to connect with the database. Default: bn_testlink
TESTLINK_DATABASE_PASSWORD: Database password that TestLink will use to connect with the database. No defaults.
ALLOW_EMPTY_PASSWORD: It can be used to allow blank passwords. Default: no

5)其他默认相关配置

Create a database for TestLink using mysql-client
MYSQL_CLIENT_FLAVOR: SQL database flavor. Valid values: mariadb or mysql. Default: mariadb.
MYSQL_CLIENT_DATABASE_HOST: Hostname for MariaDB server. Default: mariadb
MYSQL_CLIENT_DATABASE_PORT_NUMBER: Port used by MariaDB server. Default: 3306
MYSQL_CLIENT_DATABASE_ROOT_USER: Database admin user. Default: root
MYSQL_CLIENT_DATABASE_ROOT_PASSWORD: Database password for the database admin user. No defaults.
MYSQL_CLIENT_CREATE_DATABASE_NAME: New database to be created by the mysql client module. No defaults.
MYSQL_CLIENT_CREATE_DATABASE_USER: New database user to be created by the mysql client module. No defaults.
MYSQL_CLIENT_CREATE_DATABASE_PASSWORD: Database password for the MYSQL_CLIENT_CREATE_DATABASE_USER user. No defaults.
MYSQL_CLIENT_CREATE_DATABASE_CHARACTER_SET: Character set to use for the new database. No defaults.
MYSQL_CLIENT_CREATE_DATABASE_COLLATE: Database collation to use for the new database. No defaults.
MYSQL_CLIENT_CREATE_DATABASE_PRIVILEGES: Database privileges to grant for the user specified in MYSQL_CLIENT_CREATE_DATABASE_USER to the database specified in MYSQL_CLIENT_CREATE_DATABASE_NAME. No defaults.
MYSQL_CLIENT_ENABLE_SSL_WRAPPER: Whether to force SSL connections to the database via the mysql CLI tool. Useful for applications that rely on the CLI instead of APIs. Default: no
MYSQL_CLIENT_ENABLE_SSL: Whether to force SSL connections for the database. Default: no
MYSQL_CLIENT_SSL_CA_FILE: Path to the SSL CA file for the new database. No defaults
MYSQL_CLIENT_SSL_CERT_FILE: Path to the SSL CA file for the new database. No defaults
MYSQL_CLIENT_SSL_KEY_FILE: Path to the SSL CA file for the new database. No defaults
ALLOW_EMPTY_PASSWORD: It can be used to allow blank passwords. Default: no
SMTP Configuration
To configure TestLink to send email using SMTP you can set the following environment variables:

TESTLINK_SMTP_HOST: SMTP host.
TESTLINK_SMTP_PORT: SMTP port.
TESTLINK_SMTP_USER: SMTP account user.
TESTLINK_SMTP_PASSWORD: SMTP account password.
TESTLINK_SMTP_PROTOCOL: SMTP protocol. (tls, ssl).
PHP configuration
PHP_ENABLE_OPCACHE: Enable OPcache for PHP scripts. No default.
PHP_EXPOSE_PHP: Enables HTTP header with PHP version. No default.
PHP_MAX_EXECUTION_TIME: Maximum execution time for PHP scripts. No default.
PHP_MAX_INPUT_TIME: Maximum input time for PHP scripts. No default.
PHP_MAX_INPUT_VARS: Maximum amount of input variables for PHP scripts. No default.
PHP_MEMORY_LIMIT: Memory limit for PHP scripts. Default: 256M
PHP_POST_MAX_SIZE: Maximum size for PHP POST requests. No default.
PHP_UPLOAD_MAX_FILESIZE: Maximum file size for PHP uploads. No default.

二、jekins

docker run --restart=always --name=Jenkins -p 8082:8080 -p 50000:50000 --restart=always -v E:/jenkins_data:/var/jenkins_home jenkinsci/blueocean

三、redmine

点赞 0

Saiyintai

软件测试工程师

暂无评论

相关推荐