Skip to content

Commit a82bf07

Browse files
authored
add dumb-init entry point (#109)
this allows the container instance to handle the SIGTERM correctly and terminate the application. we are experiencing timeout while stoping the container this fix should handle this situations, without waiting for podman or docker to kill the process. https://issues.redhat.com/browse/AAP-55964 Signed-off-by: Djebran Lezzoum <[email protected]>
1 parent 98aba4f commit a82bf07

File tree

4 files changed

+18
-1
lines changed

4 files changed

+18
-1
lines changed

Containerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,5 +84,6 @@ USER 1001
8484
ENV PATH="/app-root/.venv/bin:$PATH"
8585
LABEL vendor="Red Hat, Inc."
8686

87+
ENTRYPOINT ["/app-root/.venv/bin/dumb-init", "--"]
8788
CMD ["/.llama/entrypoint.sh", "/app-root/.venv/bin/python3.12"]
8889
# ======================================================

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ dependencies = [
1616
"sentence-transformers>=5.0.0",
1717
"sqlalchemy~=2.0.41",
1818
"litellm~=1.75.3",
19+
"dumb-init>=1.2.5.post1",
1920
]
2021

2122
[dependency-groups]

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ click==8.2.1
1313
colorama==0.4.6 ; sys_platform == 'win32'
1414
cryptography==45.0.5
1515
distro==1.9.0
16+
dumb-init==1.2.5.post1
1617
ecdsa==0.19.1
1718
faiss-cpu==1.11.0
1819
fastapi==0.115.13

uv.lock

Lines changed: 15 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)