diff --git a/api/Dockerfile b/api/Dockerfile index 0bfe0a6..717dadd 100644 --- a/api/Dockerfile +++ b/api/Dockerfile @@ -37,7 +37,7 @@ RUN pip3 install --upgrade pip # build couchbase wheel -RUN pip3 install --no-cache-dir --root-user-action ignore couchbase +RUN pip3 install --verbose --no-cache-dir --root-user-action ignore couchbase diff --git a/api/api.py b/api/api.py index 5fd9a5f..60239ec 100644 --- a/api/api.py +++ b/api/api.py @@ -8,6 +8,7 @@ from time import sleep from fastapi import FastAPI,HTTPException from contextlib import asynccontextmanager +from pytest import ExitCode import uvicorn @@ -63,10 +64,11 @@ def check_env_vars(): # we got everything, image is sane def api_shutdown(): + logger.critical(f'sleeping for 10 seconds.') ppid = os.getppid() parent_process = psutil.Process(ppid) parent_process.kill() - sys.os.exit(1) + sys.exit(1)