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

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

Github user DimDroll commented on the issue:

    https://github.com/apache/metron/pull/775
  
    @ottobackwards , true, it does not fail the rpm build as it ends with:
    ```
    [INFO] 
------------------------------------------------------------------------
    [INFO] BUILD SUCCESS
    [INFO] 
------------------------------------------------------------------------
    [INFO] Total time: 18.284 s
    [INFO] Finished at: 2017-10-11T08:52:01-04:00
    [INFO] Final Memory: 23M/299M
    [INFO] 
------------------------------------------------------------------------
    
    ```
    However there are no RPMs in respective folders and when I scroll up I can 
see:
    ```
    /var/tmp/rpm-tmp.qHTcZj: line 58: npm: command not found
    error: Bad exit status from /var/tmp/rpm-tmp.qHTcZj (%install)
        Macro %_prerelease has empty body
        Macro %_prerelease has empty body
        Bad exit status from /var/tmp/rpm-tmp.qHTcZj (%install)
    
    RPM build errors:
    ```
    I replicate it using:
    1. Clone repo.
    2. cd metron
    3. mvn clean package -DskipTests -T 2C -P HDP-2.5.0.0,mpack
    4. cd metron-deployment/packaging/docker/rpm-docker
    5. mvn clean install -DskipTests -PHDP-2.5.0.0
    If finishes build with success as shown above, but with the error shown 
above. Attached full log
    
[rpm_build_failure.txt](https://github.com/apache/metron/files/1376787/rpm_build_failure.txt)
    
    
    



> rpm build fails due to npm absence in Dockerfile 
> -------------------------------------------------
>
>                 Key: METRON-1214
>                 URL: https://issues.apache.org/jira/browse/METRON-1214
>             Project: Metron
>          Issue Type: Bug
>    Affects Versions: 0.4.1
>            Reporter: Dima Kovalyov
>            Priority: Minor
>
> I've received error in metron/metron-deployment/packaging/docker/rpm-docker 
> that npm is not installed, which failed the whole RPM build. To fix it I've 
> added npm to line 28 in Dockerfile:
> {code}
> RUN yum -y install asciidoc rpm-build rpm2cpio tar unzip xmlto zip rpmlint 
> npm && yum clean all
> {code}
> Requirement of npm was introduced after ui and rest addition.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to