Skip to content

Commit

Permalink
test_: cleanup orphaned containers
Browse files Browse the repository at this point in the history
  • Loading branch information
antdanchenko committed Dec 10, 2024
1 parent 4a616db commit 0df1f2f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions _assets/scripts/run_functional_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ project_name="status-go-func-tests-$(date +%s)"
export STATUS_BACKEND_COUNT=1
export STATUS_BACKEND_URLS=$(eval echo http://${project_name}-status-backend-{1..${STATUS_BACKEND_COUNT}}:3333 | tr ' ' ,)

# Remove orphans
docker ps -a --filter "name=status-go-func-tests-*-status-backend-*" --filter "status=exited" -q | xargs -r docker rm

# Run docker
echo -e "${GRN}Running tests${RST}, HEAD: $(git rev-parse HEAD)"
docker compose -p ${project_name} ${all_compose_files} up -d --build --scale status-backend=${STATUS_BACKEND_COUNT} --remove-orphans
Expand Down

0 comments on commit 0df1f2f

Please sign in to comment.