-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #468 from mystic-ai/matthew/turbo-registry
Turbo Registry Integration
- Loading branch information
Showing
6 changed files
with
43 additions
and
3 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
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
32 changes: 32 additions & 0 deletions
32
pipeline/container/docker_templates/turbo_registry_template.txt
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# This file is automatically generated by pipeline-ai and should not be changed by hand. | ||
FROM python:{python_version}-slim | ||
|
||
WORKDIR /app | ||
|
||
RUN apt update -y | ||
RUN pip install --no-cache-dir -U pip setuptools wheel | ||
|
||
# Install serving packages | ||
RUN pip install --no-cache-dir -U fastapi==0.105.0 uvicorn==0.25.0 \ | ||
python-multipart==0.0.6 loguru==0.7.2 | ||
|
||
# Container commands | ||
{container_commands} | ||
|
||
# Install python dependencies | ||
RUN pip install --no-cache-dir {python_requirements} | ||
|
||
# Copy in files | ||
COPY ./ ./ | ||
|
||
FROM scratch | ||
COPY --from=0 / / | ||
|
||
WORKDIR /app | ||
|
||
ENV PYTHONUNBUFFERED=1 | ||
ENV PIPELINE_PATH={pipeline_path} | ||
ENV PIPELINE_NAME={pipeline_name} | ||
ENV PIPELINE_IMAGE={pipeline_image} | ||
|
||
CMD ["uvicorn", "pipeline.container.startup:create_app", "--host", "0.0.0.0", "--port", "14300"] |
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