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

ASF GitHub Bot commented on TINKERPOP-1557:
-------------------------------------------

GitHub user robertdale opened a pull request:

    https://github.com/apache/tinkerpop/pull/498

    TINKERPOP-1557 Improve docker build time with this one weird trick!

    Total time went from just over 4 hours to 2:20m. Get back 1:40m of your 
cycles!
    
    Giraph: startup would wait 3s to connect. solution: wait less. There's 
still about 7s for shutting down that can be gained back  per test!
    
    Neo4j: very disk IO heavy. solution: work in memory. this benefits the 
entire build as well. This requires something special below.
    
    In order to build in-memory, you must configure tmpfs with the magical 
directory name `/usr/src/tinkermem`.
    
    example: 
    
    ```
    export DOCKER_OPTS="--tmpfs 
/usr/src/tinkermem:exec,mode=0755,rw,noatime,size=1000m"
    ```
    
    You can use `1000m` for typical `-t -i -n` usage.  Use `2000m` if building 
javadoc, asciidocs.
     
    I will add some of this to the docker contributing / 
development-environment docs.


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

    $ git pull https://github.com/apache/tinkerpop TINKERPOP-1557

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

    https://github.com/apache/tinkerpop/pull/498.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 #498
    
----
commit a39c2fa23989bd9874205a4970c7647020eb0c7e
Author: Robert Dale <robd...@gmail.com>
Date:   2016-11-17T22:01:47Z

    build faster with in-memory fs
    make giraph wait less

----


> Improve docker build time with this one weird trick!
> ----------------------------------------------------
>
>                 Key: TINKERPOP-1557
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-1557
>             Project: TinkerPop
>          Issue Type: Improvement
>          Components: build-release
>    Affects Versions: 3.2.3
>            Reporter: Robert Dale
>            Assignee: Robert Dale
>            Priority: Minor
>              Labels: docker
>             Fix For: 3.3.0, 3.2.4
>
>
> Reduce integration test time of giraph and neo4j



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to