singa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "wangwei (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SINGA-358) Docker containers could be reorganized
Date Wed, 09 May 2018 04:05:00 GMT

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

wangwei commented on SINGA-358:
-------------------------------

+1

> Docker containers could be reorganized
> --------------------------------------
>
>                 Key: SINGA-358
>                 URL: https://issues.apache.org/jira/browse/SINGA-358
>             Project: Singa
>          Issue Type: Improvement
>            Reporter: James Lamb
>            Priority: Trivial
>              Labels: Docker
>
> I would like to propose a few changes to the Dockerfiles found in tool/:
> [https://github.com/apache/incubator-singa/tree/master/tool/docker|https://github.com/apache/incubator-singa/tree/master/tool/docker]
> The size of the resulting image can be reduced by making the following changes:
>  * consolidating all RUN commands into a single RUN layer (reducing the number of layers)
>  * running {color:#14892c}yum clean all{color} (on CentOS) to clear out the package
cache
>  * running {color:#14892c}conda clean --all{color} (in the conda container) to clear
out cached package tarballs, abandoned package versions, and other build artifacts from all
the libraries that are conda installed
> I would also like to propose breaking out package installs onto multiple lines for readability
(both of the Dockerfile and diffs in git).
> I will be submitting a PR on GitHub shortly. Generating this issue first so I can tag
my PR to it.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message