Skip to content

docker-compose configuration setting up TestLink with PostGreSQL

License

Notifications You must be signed in to change notification settings

lczub/testlink-pg-docker

Repository files navigation

TestLink PostgreSQL Docker Compose Configuration

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

Build and Run TestLink 1.9.20.fixed

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

Build and Run TestLink 2.0.0.dev

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

Build and Run TestLink 1.9.19

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

Start additional pgadmin container to analyse the current db situation

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

Stop and remove containers, networks ...

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

copy source from testlink_code for debugging build isssues

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

About

docker-compose configuration setting up TestLink with PostGreSQL

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published