From 23940268c437f727ca5f5da55e2b1b0c4ccd38d1 Mon Sep 17 00:00:00 2001 From: pasqualedevita <> Date: Thu, 20 Oct 2022 19:14:48 +0200 Subject: [PATCH] fix: Add curl --- Dockerfile | 2 ++ docker-compose.yml | 6 ++++++ main.cs | 8 ++++---- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0e5b6c0..0b69b7f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,6 +12,8 @@ FROM mcr.microsoft.com/azure-functions/dotnet:4.11.3-slim@sha256:a3f3888209af3c9 RUN rm -rf /FuncExtensionBundles +RUN apt-get update && apt-get install -y curl + ENV AzureWebJobsScriptRoot=/home/site/wwwroot \ AzureFunctionsJobHost__Logging__Console__IsEnabled=true diff --git a/docker-compose.yml b/docker-compose.yml index 63d2071..6c0e47f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,5 +3,11 @@ services: build: . network_mode: service:azurite env_file: [.env] + healthcheck: + test: ["CMD", "curl", "-f", "http://localhost/healthz/live"] + interval: 10s + timeout: 1s + retries: 3 + start_period: 10s azurite: image: mcr.microsoft.com/azure-storage/azurite diff --git a/main.cs b/main.cs index a4b1677..4d28d25 100644 --- a/main.cs +++ b/main.cs @@ -11,15 +11,15 @@ namespace PagoPA { - public class SftpTest + public class CustomTest { private readonly Options _options; - private readonly ILogger _log; + private readonly ILogger _log; private readonly TelemetryClient _telemetryClient; - public SftpTest( + public CustomTest( IOptions options, - ILogger log, + ILogger log, TelemetryConfiguration telemetryConfiguration ) {