You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@singa.apache.org by "James Lamb (JIRA)" <ji...@apache.org> on 2018/05/09 03:44:00 UTC
[jira] [Created] (SINGA-358) Docker containers could be reorganized
James Lamb created SINGA-358:
--------------------------------
Summary: 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
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)