In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly shows you "how to build a test management platform in the Docker environment", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "how to build a test management platform in the Docker environment" this article.
Part one: environmental preparation
First you need to install Docker engine on the CentOS 7 system, and if you have already installed it, you can skip the 1) 2) 3) 4) step.
1) install docker engine from yum warehouse
# yum install-y docker
2) enable docker service
# systemctl enable docker
3) start the docker service
# systemctl start docker
4) View the running status of docker service
# systemctl status docker
5) use the docker pull command to pull the desired image. Since both testlink and mantis need to store related data, you can see here that a mysql image has also been pulled.
# docker pull bitnami/testlink:1.9.16-r8
# docker pull vimagick/mantisbt
# docker pull mysql:5.7.20
6) use the docker network command to create a new container network, which can be named testlink-tier. So the mysql, testlink, and manties containers created next will be linked to this network.
# docker network create testlink-tier
Part II: Testlink installation
7) then start the mysql database service container and the testlink container with the following command.
# docker run-d-name mysql-testlink\
-- net testlink-tier\
-v ~ / testlink/db:/var/lib/mysql\
-e MYSQL_ROOT_PASSWORD=p@ssw0rd\
-e MYSQL_ROOT_HOST=%\
-e MYSQL_DATABASE=testlinkdb\
Mysql:5.7.20
8) in the above command, we created a mysql container, set the root account password to p@ssw0rd, created a database called testlinkdb, and allowed root to link to the mysql service from any address and to the testlink-tier container network created earlier.
9) next start the testlink container with the following command. Connect to the database service through the name (mysql-testlink) of the mysql container.
# docker run-d-p 8000 80-p 8443 Soviet 443-name testlink\
-e MARIADB_USER=root\
-e MARIADB_PASSWORD=p@ssw0rd\
-e MARIADB_HOST=mysql-testlink\
-e MARIADB_PORT_NUMBER=3306\
-- net testlink-tier\
-volume ~ / testlink/data:/bitnami/testlink\
-volume ~ / testlink/apache:/bitnami/apache\
-volume ~ / testlink/php:/bitnami/php\
Bitnami/testlink:1.9.16-r8
10) after the testlink container is started, check whether the testlink starts normally through docker logs.
# docker logs testlink
If everything is all right, a message similar to the following will be displayed in log.
11) then open http://:8000 in a browser (where host is the machine ip or domain name where docker engine is located)
Login information is as follows: default user name: user, default password bitnami, as shown in the following figure:
Part III: Mantis installation
12) when you are ready to start the mantis container, you first need to start a new mysql container with the following command.
# docker run-d-name mysql-mantis\
-- net testlink-tier\
-v ~ / mantis/db:/var/lib/mysql\
-e MYSQL_ROOT_PASSWORD=p@ssw0rd\
-e MYSQL_ROOT_HOST=%\
-e MYSQL_DATABASE=bugtracker\
-e MYSQL_USER=mantisbt\
-e MYSQL_PASSWORD=mantisbt\
Mysql:5.7.20
13) start the mantis container
# docker run-d-p 8001 80-- name mantis\
-- net testlink-tier\
Vimagick/mantisbt:latest
14) then open http://:8001/admin/install.php in the browser (where host is the ip or domain name of the machine where docker engine resides) to enter the initial installation interface, and enter the corresponding content in the following figure:
The following is a brief description of the content:
15) Click the Install/Upgrade Database button to complete the installation, and open http://:8001/ in the browser to log in to Manits.
Initial login information: user name: administrator password: root
Part IV: add Mantis to Testlink
You can add Mantis API (db mode) to the Issue Tracker Management of Testlink for integration, as shown in the following figure:
Note that the ip address and port in the uriview and uricreate nodes in the figure above need to match the running host ip and port of the mantis container.
The above is all the contents of this article "how to build a test management platform in Docker environment". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
The birthday of local Ha is weak and rfhergergergerg.
© 2024 shulou.com SLNews company. All rights reserved.