10 lines
304 B
Bash
Executable File
10 lines
304 B
Bash
Executable File
#!/bin/sh
|
|
set -eu
|
|
cd "$(dirname "$0")/.."
|
|
: "${TARGET_INSTANCE_ID:?test provides target API instance alias}"
|
|
case "$TARGET_INSTANCE_ID" in
|
|
api-1) docker compose --env-file .env stop api1 ;;
|
|
api-2) docker compose --env-file .env stop api2 ;;
|
|
*) echo "Unknown API instance alias" >&2; exit 2 ;;
|
|
esac
|