[
https://issues.apache.org/jira/browse/METRON-1650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16542422#comment-16542422
]
ASF GitHub Bot commented on METRON-1650:
----------------------------------------
Github user jameslamb commented on the issue:
https://github.com/apache/metron/pull/1091
Unfortunately, I cannot even build the current `master` branch of this
project (with none of my changes) successfully with that command.
When running `mvn clean package -DskipTests -Pbuild-rpms` from
`metron-deployment`, the build dies with:
```
+ tar -xzf /root/SOURCES/metron-common-0.5.1-archive.tar.gz -C
/root/BUILDROOT/metron-0.5.1-root/usr/metron/0.5.1
tar (child): /root/SOURCES/metron-common-0.5.1-archive.tar.gz: Cannot open:
No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
RPM build errors:
error: Bad exit status from /var/tmp/rpm-tmp.sAg9X3 (%install)
Macro %_prerelease has empty body
Macro %_prerelease has empty body
Bad exit status from /var/tmp/rpm-tmp.sAg9X3 (%install)
RPM build errors encountered
[ERROR] Command execution failed.
org.apache.commons.exec.ExecuteException: Process exited with an error: 1
(Exit value: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal
(DefaultExecutor.java:404)
<big stack trace>
```
I totally cleared out all my docker images before running, so it's not like
this is being caused by docker finding one of the images built from my branch
in its cache.
I don't even know where to start with this error. It's disappointing, but
you can just close this PR if you want. I hope you will borrow some of the
ideas from it...there is a lot of excess stuff in these containers right now.
> 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)