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

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to