-
Notifications
You must be signed in to change notification settings - Fork 114
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]>
- Loading branch information
1 parent
f42a8fc
commit 6320fc1
Showing
22 changed files
with
53 additions
and
15 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=8001 | ||
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=8001 | ||
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
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=8501 | ||
WORKDIR /locallm | ||
COPY requirements.txt /locallm/requirements.txt | ||
RUN pip install --upgrade pip && \ | ||
pip install --no-cache-dir --upgrade -r requirements.txt | ||
COPY whisper_client.py whisper_client.py | ||
EXPOSE 8501 | ||
EXPOSE $PORT | ||
ENTRYPOINT [ "streamlit", "run", "whisper_client.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
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=8501 | ||
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_client.py object_detection_client.py | ||
EXPOSE 8501 | ||
EXPOSE $PORT | ||
ENTRYPOINT [ "streamlit", "run", "object_detection_client.py" ] |
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=8501 | ||
WORKDIR /image_understanding | ||
COPY requirements.txt . | ||
RUN pip install --upgrade pip && \ | ||
pip install --no-cache-dir --upgrade -r requirements.txt | ||
COPY image_understanding.py . | ||
EXPOSE 8501 | ||
EXPOSE $PORT | ||
ENTRYPOINT [ "streamlit", "run", "image_understanding.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
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=8501 | ||
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
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=8501 | ||
WORKDIR /codegen | ||
COPY requirements.txt . | ||
RUN pip install --upgrade pip | ||
RUN pip install --no-cache-dir --upgrade -r /codegen/requirements.txt | ||
COPY codegen-app.py . | ||
EXPOSE 8501 | ||
EXPOSE $PORT | ||
ENTRYPOINT ["streamlit", "run", "codegen-app.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
3 changes: 2 additions & 1 deletion
3
recipes/natural_language_processing/summarizer/app/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=8501 | ||
WORKDIR /summarizer | ||
COPY requirements.txt . | ||
RUN pip install --upgrade pip | ||
RUN pip install --no-cache-dir --upgrade -r /summarizer/requirements.txt | ||
COPY summarizer.py . | ||
EXPOSE 8501 | ||
EXPOSE $PORT | ||
ENTRYPOINT [ "streamlit", "run", "summarizer.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