From 8b6910a6c3deb399732afa84627ef0a57c2ba721 Mon Sep 17 00:00:00 2001 From: Michael Simmons Date: Wed, 14 Apr 2021 12:26:04 -0600 Subject: [PATCH] Added Healthcheck --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4336c79..6ed3dc9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ # Build the intermediate container -ARG BASE_REGISTRY=registry1.dsop.io/ironbank/redhat/ubi -ARG BASE_IMAGE=ubi8 +ARG BASE_REGISTRY=registry1.dso.mil +ARG BASE_IMAGE=ironbank/redhat/ubi/ubi8 ARG BASE_TAG=8.3 FROM kubeflow-images-public/admission-webhook:v20190520-v0-139-gcee39dbc-dirty-0d8f4c AS base FROM ${BASE_REGISTRY}/${BASE_IMAGE}:${BASE_TAG} @@ -15,4 +15,5 @@ RUN find / -path /proc -prune -o -perm /2000 -exec chmod g-s {} \; RUN chown -R kf /app USER kf WORKDIR /app +HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 CMD [ "curl -sL -w "%{http_code}\n" https://127.0.0.1:4443 -o /dev/null" ] ENTRYPOINT [ "./webhook" ] -- GitLab