weblate/ci/services-down
Michal Čihař 41b8540238 feat: support Valkey
Valkey has more friendly licensing and some nice performance benefits,
so prefer it for the deployment. It should be fully compatible with
Redis, but extend the testsuite to test both backends to keep the
compatibility in the future.
2025-10-22 13:59:16 +02:00

20 lines
389 B
Bash
Executable file

#!/bin/sh
# Copyright © Michal Čihař <michal@weblate.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
set -e
if [ ! -f services-down ]; then
cd ci
fi
if [ -n "$2" ] && [ "$2" != "valkey" ]; then
filename="docker-compose-$1-$2.yml"
else
filename="docker-compose-$1.yml"
fi
docker compose --file "$filename" logs
docker compose --file "$filename" down --remove-orphans