Skip to content

Commit

Permalink
Change health check URL; add wget to docker image (#775)
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardIrons-neo4j authored Feb 5, 2024
1 parent 226c7d7 commit ba3a477
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ namespace Neo4j.Driver.Tests.BenchkitBackend.Controllers;
/// </summary>
[ApiController]
[Route("[controller]")]
public class HealthController(
public class ReadyController(
IDriver driver,
ILogger logger)
: ControllerBase
Expand All @@ -37,7 +37,7 @@ public class HealthController(
/// This endpoint can be used to check if the service is ready to receive requests. This obviously includes
/// the web server, but also whether the backend can successfully connect to the DBMS.
/// </remarks>
[HttpGet("ready")]
[HttpGet]
[ProducesResponseType(StatusCodes.Status204NoContent)]
public async Task<ActionResult> Get()
{
Expand Down
3 changes: 3 additions & 0 deletions Neo4j.Driver/Neo4j.Driver.Tests.BenchkitBackend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ RUN dotnet publish -c Release -o /app

# Stage 2: Runtime
FROM mcr.microsoft.com/dotnet/aspnet:8.0

RUN apt update
RUN apt install wget -y
WORKDIR /app

# Copy from build stage
Expand Down

0 comments on commit ba3a477

Please sign in to comment.