From a2e377a123cf75b1ad54945fb00a57978e8efc47 Mon Sep 17 00:00:00 2001 From: Sean Pryor Date: Fri, 14 Jul 2023 16:47:39 -0400 Subject: [PATCH 1/2] Add user home to caikit user --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 24d332c1..e716b61d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 && \ 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 From 1e762ee5aa98ccabda4a261a0a92ac2f95774c46 Mon Sep 17 00:00:00 2001 From: Sean Pryor Date: Fri, 14 Jul 2023 17:10:09 -0400 Subject: [PATCH 2/2] Update dockerfile to clean yum cache, update example servingruntime yaml --- Dockerfile | 2 +- docs/caikit-servingruntime.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index e716b61d..8d77fc67 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,7 @@ 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 && \ diff --git a/docs/caikit-servingruntime.yaml b/docs/caikit-servingruntime.yaml index 3592048e..b3bddba2 100644 --- a/docs/caikit-servingruntime.yaml +++ b/docs/caikit-servingruntime.yaml @@ -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