Skip to content

Commit

Permalink
Merge pull request #19 from Xaenalt/main
Browse files Browse the repository at this point in the history
Add user home to caikit user, update dockerfile for yum clean, update example servingruntime
  • Loading branch information
openshift-merge-robot authored Jul 14, 2023
2 parents e278231 + 1e762ee commit bcc2f07
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
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

0 comments on commit bcc2f07

Please sign in to comment.