platform/tests/prepare-tests.sh
火焚 富良 8003611c37
Change shebangs to /usr/bin/env calls for better portability (#5961)
Signed-off-by: Egor Savkin <tomasfire@live.com>
2024-07-01 23:21:52 +07:00

14 lines
363 B
Bash
Executable File

#!/usr/bin/env bash
docker compose -p sanity kill
docker compose -p sanity down --volumes
docker compose -p sanity up elastic mongodb -d --force-recreate --renew-anon-volumes
docker_exit=$?
if [ ${docker_exit} -eq 0 ]; then
echo "Container started successfully"
else
echo "Container started with errors"
exit ${docker_exit}
fi
./wait-elastic.sh 9201