Lab4: S3 attachments (grade 3)

This commit is contained in:
2026-11-16 23:42:31 +03:00
parent ec540a1a72
commit fa8bcd5811
34 changed files with 1217 additions and 31 deletions
Executable → Regular
View File
+3
View File
@@ -0,0 +1,3 @@
#!/bin/sh
set -eu
docker compose --env-file .env restart postgres s3 api1 api2 lb
+2
View File
@@ -0,0 +1,2 @@
@echo off
"C:\Program Files (x86)\Git\bin\bash.exe" "%~dp0restart.sh"
Executable → Regular
View File
+9
View File
@@ -0,0 +1,9 @@
#!/bin/sh
set -eu
: "${TARGET_INSTANCE_ID:?}"
case "$TARGET_INSTANCE_ID" in
api-1) SVC=api1 ;;
api-2) SVC=api2 ;;
*) echo "unknown instance alias: $TARGET_INSTANCE_ID" >&2; exit 1 ;;
esac
docker compose --env-file .env stop "$SVC"
+2
View File
@@ -0,0 +1,2 @@
@echo off
"C:\Program Files (x86)\Git\bin\bash.exe" "%~dp0stop-one.sh"