Skip to content

Commit

Permalink
make couchbase sdk build verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
ckuhtz committed Jul 15, 2024
1 parent 926b08b commit 0289b8f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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



Expand Down
4 changes: 3 additions & 1 deletion api/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from time import sleep
from fastapi import FastAPI,HTTPException
from contextlib import asynccontextmanager
from pytest import ExitCode
import uvicorn


Expand Down Expand Up @@ -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)



Expand Down

0 comments on commit 0289b8f

Please sign in to comment.