From c35fa2d7b4a01d6dbff5767d085a4a60371fb15e Mon Sep 17 00:00:00 2001 From: Bohdan Krokhmal Date: Tue, 29 Apr 2025 19:23:33 +0200 Subject: [PATCH] sk1 --- sk1/README.md | 34 +++++++++++++++------------------- 1 file changed, 15 insertions(+), 19 deletions(-) diff --git a/sk1/README.md b/sk1/README.md index 6b168fc..70d4c38 100644 --- a/sk1/README.md +++ b/sk1/README.md @@ -56,43 +56,39 @@ The application is deployed on **Azure** using Docker containers and Nginx as a ### **Scripts** Azure Management Scripts - - * start-app-service.sh -Starts the Azure App Service instance + +- start-app-service.sh Starts the Azure App Service instance # Authenticates with Azure and sends start request # Requires Azure CLI login and proper permissions - * stop-app-service.sh -Stops the Azure App Service instance +- stop-app-service.sh Stops the Azure App Service instance # Authenticates with Azure and sends stop request # Preserves all application data - * restart-app-service.sh -Restarts the Azure App Service instance +- restart-app-service.sh Restarts the Azure App Service instance # Performs full restart of the Azure service # Useful for applying configuration changes Application Lifecycle Scripts - * prepare-app.sh - Full application deployment sequence: - 1) Starts Docker containers (docker-compose up -d) +- prepare-app.sh Full application deployment sequence: - 2) Triggers Azure App Service startup (start-app-service.sh) + 1. Starts Docker containers (docker-compose up -d) - 3) Outputs deployment URL + 2. Triggers Azure App Service startup (start-app-service.sh) + + 3. Outputs deployment URL > The application has started at https://sk1bk-edgvcnfsfxfsegg2.westeurope-01.azurewebsites.net/ - * remove-app.sh - Complete application teardown sequence: +- remove-app.sh Complete application teardown sequence: - 1) Stops Azure App Service (stop-app-service.sh) + 1. Stops Azure App Service (stop-app-service.sh) - 2) Removes all Docker containers and volumes (docker-compose down -v) + 2. Removes all Docker containers and volumes (docker-compose down -v) Implementation Notes -1) All Azure management scripts: +1. All Azure management scripts: - Require authenticated Azure CLI session @@ -102,7 +98,7 @@ Implementation Notes - Handle empty request bodies with Content-Length: 0 -2) Composite scripts (prepare-app.sh, remove-app.sh): +2. Composite scripts (prepare-app.sh, remove-app.sh): - Combine container and cloud resource management @@ -110,7 +106,7 @@ Implementation Notes - Provide user feedback via console output -3) Security: +3. Security: - Access tokens are obtained fresh for each execution