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

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

Github user jameslamb commented on the issue:

    https://github.com/apache/metron/pull/1091
  
    @mmiklavc Thank you for the help! Unfortunately, this did not work for me. 
Running `mvn clean install -DskipTests` fails with this error:
    
    ```
    [ERROR] Failed to execute goal on project metron-stellar: Could not resolve 
dependencies for project org.apache.metron:metron-stellar:pom:0.5.1: Could not 
find artifact sun.jdk:tools:jar:LATEST at specified path 
/Library/Java/JavaVirtualMachines/jdk-10.0.1.jdk/Contents/Home/../lib/tools.jar 
-> [Help 1]
    ```
    
    Env info from `mvn --version`:
    
    ```
    Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 
2018-06-17T13:33:14-05:00)
    Maven home: /Applications/apache-maven-3.5.4
    Java version: 10.0.1, vendor: Oracle Corporation, runtime: 
/Library/Java/JavaVirtualMachines/jdk-10.0.1.jdk/Contents/Home
    Default locale: en_US, platform encoding: UTF-8
    OS name: "mac os x", version: "10.13.5", arch: "x86_64", family: "mac"
    ```
    
    I did try googling around for this error (thinking maybe it's just 
something that Java developers understand and experience commonly), but I 
haven't had any luck.


> 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