From c41ddaf7f467d82255480b3585a091a057a259e4 Mon Sep 17 00:00:00 2001 From: Alejandro Saucedo Date: Mon, 18 Oct 2021 09:55:35 +0100 Subject: [PATCH] Updated Python wrapper application folder owner to default 8888 (#3674) * Updated folder owner to default 8888 * Added docs --- doc/source/reference/upgrading.md | 10 ++++++++++ wrappers/s2i/python/Dockerfile | 3 +++ wrappers/s2i/python/Dockerfile.gpu | 3 +++ 3 files changed, 16 insertions(+) diff --git a/doc/source/reference/upgrading.md b/doc/source/reference/upgrading.md index b4cc56525f..b2f421b13c 100644 --- a/doc/source/reference/upgrading.md +++ b/doc/source/reference/upgrading.md @@ -6,6 +6,16 @@ If you were running our Openshift 0.4.2 certified operator and are looking to up Make sure you also [read the CHANGELOG](./changelog.html) to see the detailed features and bug-fixes in each version. + +## Upgrading to 1.12 + +### Updated Python wrapper folder configurations + + * The default running user in Seldon Core is 8888 + * Some servers like the MLFlow Server v1 installs installations in runtime + * Access required to modify files in the local folder are required so the application folder should be writable + * The default base image now changes the owner of the /microservice folder to user 8888 + ## Upgrading to 1.11 ### Python S2I Wrapper diff --git a/wrappers/s2i/python/Dockerfile b/wrappers/s2i/python/Dockerfile index e71579c893..b38cd28b1f 100644 --- a/wrappers/s2i/python/Dockerfile +++ b/wrappers/s2i/python/Dockerfile @@ -31,4 +31,7 @@ RUN cd /microservice/python && pip install . RUN mkdir -p /.conda && chmod a+rwx /.conda RUN yum -y update-minimal --security --sec-severity=Important --sec-severity=Critical +# Default user is 8888 so changing for permissiosn to modify (needed in mlflow server) +RUN chown -R 8888 /microservice + EXPOSE 5000 diff --git a/wrappers/s2i/python/Dockerfile.gpu b/wrappers/s2i/python/Dockerfile.gpu index 668859776f..0c59803df2 100644 --- a/wrappers/s2i/python/Dockerfile.gpu +++ b/wrappers/s2i/python/Dockerfile.gpu @@ -46,4 +46,7 @@ RUN cd /microservice/python && pip install . RUN mkdir -p /.conda && chmod a+rwx /.conda +# Default user is 8888 so changing for permissiosn to modify (needed in mlflow server) +RUN chown -R 8888 /microservice + EXPOSE 5000