You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@yunikorn.apache.org by "Wilfred Spiegelenburg (Jira)" <ji...@apache.org> on 2022/07/14 03:10:00 UTC

[jira] [Commented] (YUNIKORN-1257) Docker build improvements

    [ https://issues.apache.org/jira/browse/YUNIKORN-1257?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17566619#comment-17566619 ] 

Wilfred Spiegelenburg commented on YUNIKORN-1257:
-------------------------------------------------

Follow recommendations for docker files as per: [https://docs.docker.com/develop/develop-images/dockerfile_best-practices/]

Redhat OpenShift uses a dynamic user by default to run the container. By setting up the image correctly that should work OOTB for us. See the {{Support arbitrary user ids}} paragraph as mentioned here: [https://docs.openshift.com/container-platform/4.10/openshift_images/create-images.html#images-create-guide-openshift_create-images]

> Docker build improvements
> -------------------------
>
>                 Key: YUNIKORN-1257
>                 URL: https://issues.apache.org/jira/browse/YUNIKORN-1257
>             Project: Apache YuniKorn
>          Issue Type: Improvement
>          Components: shim - kubernetes, webapp
>            Reporter: Wilfred Spiegelenburg
>            Assignee: Wilfred Spiegelenburg
>            Priority: Major
>
> The current logic in the docker files we use does not follow the best practices for building images. This causes images to be much larger than needed.
> Cleanup of build order:
>  * decrease size of images
>  * standardise setup
>  * factor out home directory into environment
>  * support arbitrary userID on Redhat OpenShift



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@yunikorn.apache.org
For additional commands, e-mail: issues-help@yunikorn.apache.org