Skip to content

Commit 9ecc5c3

Browse files
authored
Introduce 'entrypoint.sh' for some Containers (#274)
Signed-off-by: Abolfazl Shahbazi <[email protected]>
1 parent 9670465 commit 9ecc5c3

24 files changed

+82
-34
lines changed

comps/llms/summarization/tgi/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ ENV PYTHONPATH=$PYTHONPATH:/home/user
2424

2525
WORKDIR /home/user/comps/llms/summarization/tgi
2626

27-
ENTRYPOINT ["python", "llm.py"]
27+
ENTRYPOINT ["bash", "entrypoint.sh"]
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env bash
2+
3+
# Copyright (C) 2024 Intel Corporation
4+
# SPDX-License-Identifier: Apache-2.0
5+
6+
pip --no-cache-dir install -r requirements-runtime.txt
7+
8+
python llm.py
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
langserve

comps/llms/summarization/tgi/requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ docarray[full]
22
fastapi
33
huggingface_hub
44
langchain==0.1.16
5-
langserve
65
langsmith
76
opentelemetry-api
87
opentelemetry-exporter-otlp

comps/llms/text-generation/ollama/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ ENV PYTHONPATH=$PYTHONPATH:/home/user
2525

2626
WORKDIR /home/user/comps/llms/text-generation/ollama
2727

28-
ENTRYPOINT ["python", "llm.py"]
28+
ENTRYPOINT ["bash", "entrypoint.sh"]
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env bash
2+
3+
# Copyright (C) 2024 Intel Corporation
4+
# SPDX-License-Identifier: Apache-2.0
5+
6+
pip --no-cache-dir install -r requirements-runtime.txt
7+
8+
python llm.py
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
langserve

comps/llms/text-generation/ollama/requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ docarray[full]
22
fastapi
33
huggingface_hub
44
langchain==0.1.16
5-
langserve
65
langsmith
76
opentelemetry-api
87
opentelemetry-exporter-otlp

comps/llms/text-generation/ray_serve/docker/Dockerfile.microservice

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ ENV PYTHONPATH=$PYTHONPATH:/home/user
3434

3535
WORKDIR /home/user/comps/llms/text-generation/ray_serve
3636

37-
ENTRYPOINT ["python", "llm.py"]
37+
ENTRYPOINT ["bash", "entrypoint.sh"]
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env bash
2+
3+
# Copyright (C) 2024 Intel Corporation
4+
# SPDX-License-Identifier: Apache-2.0
5+
6+
pip --no-cache-dir install -r requirements-runtime.txt
7+
8+
python llm.py

0 commit comments

Comments
 (0)