MrRabbit.HealthChecks.Container.Client
8.0.0
dotnet add package MrRabbit.HealthChecks.Container.Client --version 8.0.0
NuGet\Install-Package MrRabbit.HealthChecks.Container.Client -Version 8.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MrRabbit.HealthChecks.Container.Client" Version="8.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MrRabbit.HealthChecks.Container.Client --version 8.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: MrRabbit.HealthChecks.Container.Client, 8.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install MrRabbit.HealthChecks.Container.Client as a Cake Addin #addin nuget:?package=MrRabbit.HealthChecks.Container.Client&version=8.0.0 // Install MrRabbit.HealthChecks.Container.Client as a Cake Tool #tool nuget:?package=MrRabbit.HealthChecks.Container.Client&version=8.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
HealthCheck
Problem
In new versions of Microsoft container images you can't simply run command to install curl. So how you can check status of your app?
Solution
Install package
dotnet add package MrRabbit.HealthChecks.Container.Client
Edit your docker-compose.yml file
healthcheck:
test: [ "CMD", "dotnet", "/[PATH TO YOUR APP]/healthcheck.dll", "ADDRESS TO HEALTH CHECK ENDPOINT" ]
Example
healthcheck:
test: [ "CMD", "dotnet", "/app/healthcheck.dll", "http://localhost:8080/hc" ]
It works on container images chiseled version too.
Sample web app
How it works
Nuget packages adds content files which are copy to build output directory.
healthcheck.dll
healthcheck.pdb
healthcheck.runtimeconfig
You can run it from terminal in container
dotnet ./healthcheck.dll
There are no supported framework assets in this package.
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
8.0.0 | 301 | 10/12/2024 |