17 lines
432 B
Bash
Executable File
17 lines
432 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
output="$(docker compose config)"
|
|
|
|
if ! grep -q "container_name: domovoy-worker" <<< "$output"; then
|
|
echo "Expected compose config to define domovoy-worker" >&2
|
|
exit 1
|
|
fi
|
|
|
|
if ! grep -q -- "- bin/run-scan-worker.php" <<< "$output" || ! grep -q -- "- --loop" <<< "$output"; then
|
|
echo "Expected worker to run bin/run-scan-worker.php --loop" >&2
|
|
exit 1
|
|
fi
|
|
|
|
echo "worker config ok"
|