This is a project that creates a docker image for TestLink 1.9.20.
$ git clone https://github.com/ashel1806/testlink_docker.git
It's important to note that this image does not include a MySQL database. Instead, the intention is for you to provide the MySQL database as a separate container. This allows you to use a version of MySQL other than the one provided by this image.
When starting your MySQL instance, you will need to create a database and user for TestLink. You can do this by running the following commands:
$ docker run --name some-mysql \
-e MYSQL_ROOT_PASSWORD=root \
-e MYSQL_USER=testlink \
-e MYSQL_PASSWORD=testlink \
-e MYSQL_DATABASE=testlink \
-p 3306:3306 -d \
mysql:5.7
Note: Don´t modify the values of the environment variables. If you do, you will need to modify the file config_db.inc.php
and the Dockerfile
.
$ cd testlink_docker
$ docker build -t testlink:1.9.20 .
$ docker run --name some-testlink -p 8080:80 -d testlink:1.9.20
Open your browser and go to http://localhost:8080
. The credentials are admin
and admin
.