Skip to content

Commit

Permalink
Revert "PYIC-7612: configure healthcheck for ECS"
Browse files Browse the repository at this point in the history
  • Loading branch information
thebauSoftwire authored Nov 13, 2024
1 parent 4b1964f commit 839ac4d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 12 deletions.
4 changes: 0 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@ COPY --from=khw46367.live.dynatrace.com/linux/oneagent-codemodules-musl:nodejs /
ENV LD_PRELOAD /opt/dynatrace/oneagent/agent/lib64/liboneagentproc.so

ENV PORT 8080

HEALTHCHECK --interval=5s --timeout=2s --retries=10 \
CMD curl -f http://localhost:8080/healthcheck || exit 1

EXPOSE 8080

ENTRYPOINT ["tini", "--"]
Expand Down
7 changes: 0 additions & 7 deletions deploy/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -854,13 +854,6 @@ Resources:
PortMappings:
- ContainerPort: 8080
Protocol: tcp
HealthCheck:
Command:
- "CMD-SHELL"
- "curl -f http://localhost:8080/healthcheck || exit 1"
Interval: 5
Retries: 10
Timeout: 2
LogConfiguration:
LogDriver: awslogs
Options:
Expand Down
2 changes: 1 addition & 1 deletion src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ app.use(
);

app.get("/healthcheck", (req, res) => {
logger.debug("Healthcheck returning 200 OK.");
logger.info("Healthcheck returning 200 OK.");
res.status(200).send("OK");
});

Expand Down

0 comments on commit 839ac4d

Please sign in to comment.