GitHub user ottobackwards opened a pull request:

    https://github.com/apache/metron/pull/848

    METRON-1333 Ensure that ansible-docker can be used to build metron ( 
including rpms )

    The ansible-docker container could be used to build metron ( even the rpms 
) and run the ansible scripts. This is no longer true, as the new node ui 
projects have native compilation that requires c++ 11 support in gcc, and rpm 
build requires node to be installed ( not local installed as in the mvn 
packaging ).
    Many users are having problems building metron on centos platforms, having 
this container available and functioning would be a great help.
    
    This PR addresses this by:
    
    - installing devtoolset-2 into the container to get cpp 11
    - creating a .bash_profile for root that enables the devtoolset environment
    - installing node into the container since building rpms now requires node 
( and not just the local node used during building in maven )
    - documenting building in container, as well as mapping local .m2 repo into 
the container
    
    You can now build and test metron, including building the rpms.
    
    
    ## Testing
    
    Follow the steps in the read me and build metron:
    
    `mvn clean package`
    `mvn clean package -DskipTests`
    `mvn clean install && cd metron-deployment && mvn package -P build-rpms`
    
    
    ## Pull Request Checklist
    
    ### For all changes:
    - [x] Is there a JIRA ticket associated with this PR? If not one needs to 
be created at [Metron 
Jira](https://issues.apache.org/jira/browse/METRON/?selectedTab=com.atlassian.jira.jira-projects-plugin:summary-panel).
 
    - [x] Does your PR title start with METRON-XXXX where XXXX is the JIRA 
number you are trying to resolve? Pay particular attention to the hyphen "-" 
character.
    - [x] Has your PR been rebased against the latest commit within the target 
branch (typically master)?
    
    
    ### For code changes:
    - [x] Have you included steps to reproduce the behavior or problem that is 
being changed or addressed?
    - [x] Have you included steps or a guide to how the change may be verified 
and tested manually?
    - [x ] Have you run a build, test, build rpm set of builds in the container?
    
    ### For documentation related changes:
    - [x] Have you ensured that format looks appropriate for the output in 
which it is rendered by building and verifying the site-book? 


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/ottobackwards/metron docker_build_env

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/metron/pull/848.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #848
    
----
commit 3b9f0e9aa13f3140433af1c9fe84ef87ac9016ff
Author: Otto Fowler <ottobackwa...@gmail.com>
Date:   2017-11-27T16:18:28Z

    Refactor and document the ansible-docker container such that it now 
supports building metron and it's rpms
    Also updated to centos 6.9

----


---

Reply via email to