-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixing passing port as a build argument to containers
Signed-off-by: greg pereira <[email protected]> hoping to trigger tests Signed-off-by: greg pereira <[email protected]>
- Loading branch information
1 parent
999093d
commit c07b1bb
Showing
16 changed files
with
41 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
FROM registry.access.redhat.com/ubi9/python-311:1-52 | ||
ARG PORT | ||
WORKDIR /locallm | ||
COPY src . | ||
RUN pip install --no-cache-dir --verbose -r ./requirements.txt | ||
EXPOSE 8001 | ||
EXPOSE $PORT | ||
ENTRYPOINT [ "sh", "./run.sh" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
FROM quay.io/opendatahub/workbench-images:cuda-ubi9-python-3.9-20231206 | ||
ARG PORT | ||
WORKDIR /locallm | ||
COPY src . | ||
RUN pip install --upgrade pip | ||
ENV CMAKE_ARGS="-DLLAMA_CUBLAS=on" | ||
ENV FORCE_CMAKE=1 | ||
RUN pip install --no-cache-dir --upgrade -r /locallm/requirements.txt | ||
EXPOSE $PORT | ||
ENTRYPOINT [ "sh", "run.sh" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
recipes/computer_vision/object_detection/model_server/Containerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
FROM registry.access.redhat.com/ubi9/python-311:1-52 | ||
ARG PORT | ||
WORKDIR /locallm | ||
COPY requirements.txt /locallm/requirements.txt | ||
RUN pip install --upgrade pip && \ | ||
pip install --no-cache-dir --upgrade -r requirements.txt | ||
COPY object_detection_server.py object_detection_server.py | ||
EXPOSE 8000 | ||
COPY ../src/object_detection_server.py object_detection_server.py | ||
EXPOSE $PORT | ||
ENTRYPOINT [ "uvicorn", "object_detection_server:app", "--host", "0.0.0.0" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
FROM registry.access.redhat.com/ubi9/python-311:1-52 | ||
ARG PORT | ||
WORKDIR /chat | ||
COPY requirements.txt . | ||
RUN pip install --upgrade pip | ||
RUN pip install --no-cache-dir --upgrade -r /chat/requirements.txt | ||
COPY chatbot_ui.py . | ||
EXPOSE 8501 | ||
EXPOSE $PORT | ||
ENTRYPOINT [ "streamlit", "run", "chatbot_ui.py" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters