lab4: S3-вложения, presigned upload и проверки

This commit is contained in:
Vladislav Kunetskiy
2026-10-21 22:42:48 +03:00
parent d342b2a227
commit 49c2fe3071
79 changed files with 12266 additions and 910 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
#!/bin/sh
set -eu
# Fault-injection hook: stop exactly ONE api replica of the lab3 stand.
# Fault-injection hook: stop exactly ONE api replica of the lab4 stand.
#
# TARGET_INSTANCE_ID=<hostname|container name|short id> scripts/stop-one.sh
#
@@ -13,7 +13,7 @@ set -eu
# No credentials are printed.
: "${TARGET_INSTANCE_ID:?test provides target API instance alias}"
PROJECT=${COMPOSE_PROJECT_NAME:-mtusi-messenger-lab3}
PROJECT=${COMPOSE_PROJECT_NAME:-mtusi-messenger-lab4}
candidates=$(docker ps -q \
--filter "label=com.docker.compose.project=${PROJECT}" \
@@ -26,7 +26,7 @@ fi
# Matches the requested alias against every reasonable identifier of a replica:
# container hostname (= X-Instance-Id), full/short container id, full container
# name (mtusi-messenger-lab3-api-1) and the service-local suffix (api-1).
# name (mtusi-messenger-lab4-api-1) and the service-local suffix (api-1).
match_replica() {
target=$1
full_id=$2