mirror of
https://github.com/zokradonh/kopano-docker.git
synced 2026-08-11 16:32:59 +00:00
rework test image (#185)
use scheduler image as base after dockerize round also execute some other commands clean up test containers after run switch kopano-admin to listing users (also more helpful when debugging) comment kopano-cli for the moment
This commit is contained in:
@@ -349,8 +349,9 @@ test-ci: ## Test if all containers start up
|
||||
docker-compose -f $(DOCKERCOMPOSE_FILE) -f tests/test-container.yml build
|
||||
docker-compose -f $(DOCKERCOMPOSE_FILE) up -d
|
||||
docker-compose -f $(DOCKERCOMPOSE_FILE) ps
|
||||
docker-compose -f $(DOCKERCOMPOSE_FILE) -f tests/test-container.yml run test || (docker-compose -f $(DOCKERCOMPOSE_FILE) -f tests/test-container.yml down -v; exit 1)
|
||||
docker-compose -f $(DOCKERCOMPOSE_FILE) -f tests/test-container.yml run test || (docker-compose -f $(DOCKERCOMPOSE_FILE) -f tests/test-container.yml ps; exit 1)
|
||||
docker-compose -f $(DOCKERCOMPOSE_FILE) -f tests/test-container.yml stop 2>/dev/null
|
||||
docker ps --filter name=kopano_test* -aq | xargs docker rm -f
|
||||
|
||||
test-security: ## Scan containers with Trivy for known security risks (not part of CI workflow for now).
|
||||
cat $(TAG_FILE) | xargs -I % sh -c 'trivy --exit-code 0 --severity HIGH --quiet --auto-refresh %'
|
||||
|
||||
Reference in New Issue
Block a user