This docker-compose configuration has the scope to setup a TestLink environment with PostGreSQL, which can be used by projects like TL-API for their tests.
- container build only from official PHP and PostGreSQL images
- automated TestLink database setup without manual interactions
- supports builds with different TL, PHP and PG version combinations
- optional pgadmin container can be started to analyse the current DB situation
TestLink will be reachable on localhost port 8085
Source: TestLink Branch testlink_1_9_20_fixed
docker compose --env-file ./envs/testlink-1.9.20.fixed.env -f docker-compose.yml -f docker-compose.build.yml build tl_code
docker compose --env-file ./envs/testlink-1.9.20.fixed.env -f docker-compose.yml -f docker-compose.build.yml build tl_pg tl_apache
docker compose --env-file ./envs/testlink-1.9.20.fixed.env -f docker-compose.yml up -d
Source: TestLink Release Branch 2.0.0-2.0.0-20201221-01
docker compose --env-file ./envs/testlink-2.0.0.dev.env -f docker-compose.yml -f docker-compose.build.yml build tl_code
docker compose --env-file ./envs/testlink-2.0.0.dev.env -f docker-compose.yml -f docker-compose.build.yml build tl_pg tl_apache
docker compose --env-file ./envs/testlink-2.0.0.dev.env -f docker-compose.yml up -d
Source: TestLink Release Tag 1.9.19
docker compose --env-file ./envs/testlink-1.9.19.env -f docker-compose.yml -f docker-compose.build.yml build tl_code
docker compose --env-file ./envs/testlink-1.9.19.env -f docker-compose.yml -f docker-compose.build.yml build tl_pg tl_apache
docker compose --env-file ./envs/testlink-1.9.19.env -f docker-compose.yml up -d
Docker build will install fix for known TL 1.9.19 PG installation issue TL Mantis 8693
pgadmin will be reachable on localhost port 8086 with credential [email protected] + SuperSecret
TL PG Server connection parameter are: host tl_pg user tlink password tlink
docker compose --env-file ./envs/testlink-1.9.20.fixed.env -f docker-compose.yml -f ./docker-compose.pgadmin.yml up -d pgadmin
docker compose --env-file ./envs/testlink-2.0.0.dev.env -f docker-compose.yml -f ./docker-compose.pgadmin.yml up -d pgadmin
docker compose --env-file ./envs/testlink-1.9.19.env -f docker-compose.yml -f ./docker-compose.pgadmin.yml up -d pgadmin
docker compose --env-file ./envs/testlink-1.9.20.fixed.env -f docker-compose.yml down --rmi local -v
docker compose --env-file ./envs/testlink-2.0.0.dev.env -f docker-compose.yml down --rmi local -v
docker compose --env-file ./envs/testlink-1.9.19.env -f docker-compose.yml down --rmi local -v
docker run --name tl_code -it --rm -d lczub/testlink_code:2.0.0.dev /bin/sh
docker cp tl_code:/var/testlink-code-2.0.0.dev d:\tmp
docker rm -f tl_code