feat: complete lab 7 for grade 4
Skeleton contracts / contracts (pull_request) Blocked by required conditions

This commit is contained in:
sashadugina06
2026-12-04 13:55:32 +03:00
parent 20afc2c790
commit 11390b65fd
91 changed files with 10163 additions and 50 deletions
+13
View File
@@ -0,0 +1,13 @@
#!/bin/sh
set -eu
install -m 0600 -o postgres -g postgres /run/identity/server.key /run/postgres-tls/server.key
install -m 0644 -o postgres -g postgres /run/identity/server.crt /run/postgres-tls/server.crt
# Execute the bind-mounted script through sh. Docker Desktop may mount it noexec.
printf '%s\n' '#!/bin/sh' 'exec /bin/sh /lab/init-roles.sh' \
> /docker-entrypoint-initdb.d/10-roles.sh
chmod 0755 /docker-entrypoint-initdb.d/10-roles.sh
exec docker-entrypoint.sh postgres -c ssl=on \
-c ssl_cert_file=/run/postgres-tls/server.crt \
-c ssl_key_file=/run/postgres-tls/server.key \
-c ssl_min_protocol_version=TLSv1.2 \
-c hba_file=/lab/pg_hba.conf -c password_encryption=scram-sha-256