Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add user home to caikit user, update dockerfile for yum clean, update example servingruntime #19

Merged
merged 2 commits into from
Jul 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
FROM quay.io/opendatahub/text-generation-inference:fast-836fa5f

USER root

WORKDIR /caikit
COPY caikit /caikit

RUN yum -y install git && \
RUN yum -y install git && yum clean all && \
pip install pipenv && \
pipenv install --system && \
rm -rf ~/.cache && \
mkdir -p /opt/models && \
adduser -g 0 -u 1001 caikit && \
adduser -g 0 -u 1001 caikit --home-dir /caikit && \
chown -R 1001:0 /caikit /opt/models && \
chmod -R g=u /caikit /opt/models

Expand Down
2 changes: 1 addition & 1 deletion docs/caikit-servingruntime.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ spec:
- name: RUNTIME_LOCAL_MODELS_DIR
value: /mnt/models
# TODO: This will eventually point to the official image
image: quay.io/spryor/caikit-serving@sha256:6c5358edc460436880d87fa40f76e1fdeb5a0410d87824c0eb8965cfde641c0d
image: quay.io/opendatahub/caikit-tgis-serving@sha256:20cbc7b312e0dc63903d4a2c7d70b741135ffea31113af63dd8691da4baae0f9
name: kserve-container
ports:
# Note, KServe only allows a single port, this is the gRPC port. Subject to change in the future
Expand Down