From c1067a67afe3f80df8b7939e97e63dff853c940f Mon Sep 17 00:00:00 2001 From: Ayaz Salikhov Date: Fri, 13 May 2022 17:31:33 +0300 Subject: [PATCH] Fix HEALTHCHECK when GEN_CERT=yes --- base-notebook/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/base-notebook/Dockerfile b/base-notebook/Dockerfile index 7943cbad..4583037e 100644 --- a/base-notebook/Dockerfile +++ b/base-notebook/Dockerfile @@ -166,7 +166,8 @@ RUN sed -re "s/c.ServerApp/c.NotebookApp/g" \ # This healtcheck works well for `lab`, `notebook`, `nbclassic`, `server` and `retro` jupyter commands # https://github.com/jupyter/docker-stacks/issues/915#issuecomment-1068528799 HEALTHCHECK --interval=15s --timeout=3s --start-period=5s --retries=3 \ - CMD wget -O- --no-verbose --tries=1 http://localhost:8888${JUPYTERHUB_SERVICE_PREFIX:-/}api || exit 1 + CMD wget -O- --no-verbose --tries=1 --no-check-certificate \ + http${GEN_CERT:+s}://localhost:8888${JUPYTERHUB_SERVICE_PREFIX:-/}api || exit 1 # Switch back to jovyan to avoid accidental container runs as root USER ${NB_UID}