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

ASF GitHub Bot commented on METRON-1650:
----------------------------------------

Github user mmiklavc commented on the issue:

    https://github.com/apache/metron/pull/1091
  
    @jameslamb Thank you for taking the time to contribute to the project. That 
command you're running is independent of the main build from root. It appears 
that it's probably failing because those tar.gz artifacts have not been built 
and thus will not have been copied to the SOURCES folder. Run the following 
from project root: `mvn clean install -DskipTests` followed by the command you 
posted above from `metron-deployment`. The `SOURCES` and `BUILDROOT` folders 
should typically exist in 
`<project-root>/metron-deployment/packaging/docker/rpm-docker/`. I'm not sure 
what the `/root` path business is all about, but I hope this helps.


> Packaging docker containers are too large
> -----------------------------------------
>
>                 Key: METRON-1650
>                 URL: https://issues.apache.org/jira/browse/METRON-1650
>             Project: Metron
>          Issue Type: Improvement
>            Reporter: James Lamb
>            Priority: Minor
>
> I have been looking through the project source code, and found that the 
> packaging docker containers are bigger than they need to be. 
> The containers' size could be cut substantially by:
>  * Grouping as many commands as possible into as few RUN stages as possible
>  * Taking advantage of `yum clean` and `apt-get clean`
>  * Removing artifacts pulled with `wget`
>  * Removing unused libraries or libraries only needed at build time (like 
> `tar` and `wget`)
> I am creating this issue but will soon submit a PR to address it.
> Thank you for considering my proposal!



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

Reply via email to