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

1)创建一个网络 

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



知识共享许可协议本作品采用知识共享署名-相同方式共享 4.0 国际许可协议进行许可。

相关推荐

为知笔记 docker 更新

如何更新为知笔记 docker 本作品采用知识共享署名-相同方式共享 4.0 国际许可协议进行许可。

APITable修改默认端口

APITable老是忘记密码,不得不重新部署,然而apitable端口443和80端口被其他服务占用了。要改下 ...

如何在Docker Swarm集群中解散节点

家里有2个树莓派CM4,1个树莓派4B 4G,还有1个ITX服务器。
上面都有dockers,之前是树莓派4B 作为集群(Leader),现在改用为ITX为集群(Leader)。下面就是怎么解散docker swarm 集群。
然后再重新创建集群,把树莓派上的dockers移到到ITX电脑上。

暂无评论

目录展开