larroy commented on a change in pull request #11096: [MXNET-472] ccache for docker builds URL: https://github.com/apache/incubator-mxnet/pull/11096#discussion_r192720757
########## File path: ci/build.py ########## @@ -127,12 +140,16 @@ def container_run(platform: str, local_build_folder = buildir() # We need to create it first, otherwise it will be created by the docker daemon with root only permissions os.makedirs(local_build_folder, exist_ok=True) + os.makedirs(local_ccache_dir, exist_ok=True) + logging.info("Using ccache directory: %s", local_ccache_dir) runlist = [docker_binary, 'run', '--rm', '-t', - '--shm-size={}'.format(shared_memory_size), - '-v', "{}:/work/mxnet".format(mx_root), # mount mxnet root - '-v', "{}:/work/build".format(local_build_folder), # mount mxnet/build for storing build artifacts - '-u', '{}:{}'.format(os.getuid(), os.getgid()), - tag] + '--shm-size={}'.format(shared_memory_size), + '-v', "{}:/work/mxnet".format(mx_root), # mount mxnet root + '-v', "{}:/work/build".format(local_build_folder), # mount mxnet/build for storing build artifacts + '-v', "{}:/work/ccache".format(local_ccache_dir), + '-u', '{}:{}'.format(os.getuid(), os.getgid()), + '-e', "CCACHE_DIR=/work/ccache", # this path is inside the container as /work/ccache is mounted Review comment: default is 5G I think that's ok for now. We can tune it later. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services