Select Git revision
run-test.functions
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
run-test.functions 912 B
#!/usr/bin/env bash
################################################################
# The file provides docker compose functions to start, execute
# tests and stop the docker compose containers.
################################################################
################################################################
# Function exports the logs to file and stop and clear containers
function stopAndClearTestContainers() {
echo "Save docker log to docker-file"
docker logs "${PLAN_PREFIX}" > smp-container.log 2>&1
echo "Clear containers and volumes"
docker-compose -p "${PLAN_PREFIX}" rm -s -f -v
}
################################################################
# Function exports the logs to file and stop and clear containers
function startTestContainers() {
echo "Save docker log to docker-file"
docker compose -p "${PLAN_PREFIX}" up -d --force-recreate --wait --wait-timeout 300
}