Public Repository

Last pushed: 6 months ago
Short Description
TestLink running in docker
Full Description

TestLink in Docker

In order to run TestLink Test case management system in a docker container. Follow along:

Step 1: Create a docker network for the container to access MySQL DB

$ sudo docker network create mynetwork

Step 2: Instantiate a MySQL container

$ docker run -d --name mysql -p 3306:3306 --network mynetwork -v /Users/dockervol/mysql:/var/lib/mysql -e 'MYSQL_ROOT_NAME=root' -e 'MYSQL_ROOT_PASSWORD=password' mysql

Step 3: Create a database user and grant permissions

$ docker exec -it mysql bash
Inside the MySQL container
$ mysql -uroot -p
Then run the following commands at the MySQL prompt:
CREATE DATABASE testlink;
USE testlink;
CREATE USER 'testadmin'@'localhost' IDENTIFIED BY 'password';
GRANT ALL ON *.* TO 'testadmin'@'localhost';
FLUSH PRIVILEGES;

Step 4: Instantiate the TestLink container

$ docker run -d -p 80:80 --network mynetwork --name testlink bdeepak23/testlink

Step 5: You should now be able to access testlink at http://localhost/testlink

Docker Pull Command
Owner
bdeepak23