Skip to content

Commit

Permalink
fix: Add curl
Browse files Browse the repository at this point in the history
  • Loading branch information
pasqualedevita committed Oct 20, 2022
1 parent 8e8bddf commit 2394026
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 6 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 4 additions & 4 deletions main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@

namespace PagoPA
{
public class SftpTest
public class CustomTest
{
private readonly Options _options;
private readonly ILogger<SftpTest> _log;
private readonly ILogger<CustomTest> _log;
private readonly TelemetryClient _telemetryClient;

public SftpTest(
public CustomTest(
IOptions<Options> options,
ILogger<SftpTest> log,
ILogger<CustomTest> log,
TelemetryConfiguration telemetryConfiguration
)
{
Expand Down

0 comments on commit 2394026

Please sign in to comment.