forked from mtusi2026/mtusi2026lab7
Complete lab 7 security infrastructure
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
ROOT="$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)"
|
||||
cd "$ROOT"
|
||||
case "${TARGET_INSTANCE_ID:-}" in
|
||||
replica-a) docker compose --env-file .env stop api1 api1-mtls ;;
|
||||
replica-b) docker compose --env-file .env stop api2 api2-mtls ;;
|
||||
*) echo "TARGET_INSTANCE_ID must be replica-a or replica-b" >&2; exit 2 ;;
|
||||
esac
|
||||
Reference in New Issue
Block a user