You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2019/01/15 17:12:17 UTC

[GitHub] marcoabreu commented on a change in pull request #13884: [CI][URGENT] Fixes for docker cache generation

marcoabreu commented on a change in pull request #13884: [CI][URGENT] Fixes for docker cache generation
URL: https://github.com/apache/incubator-mxnet/pull/13884#discussion_r247983064
 
 

 ##########
 File path: ci/docker_cache.py
 ##########
 @@ -34,11 +32,11 @@
 import build as build_util
 from util import retry
 
-DOCKERHUB_LOGIN_NUM_RETRIES = 5
-DOCKERHUB_RETRY_SECONDS = 5
-DOCKER_CACHE_NUM_RETRIES = 3
-DOCKER_CACHE_TIMEOUT_MINS = 15
-PARALLEL_BUILDS = 10
+DOCKERHUB_LOGIN_NUM_RETRIES =   int(os.environ.get('DOCKER_CACHE_DOCKERHUB_LOGIN_NUM_RETRIES', '5'))
+DOCKERHUB_RETRY_SECONDS =       int(os.environ.get('DOCKER_CACHE_DOCKERHUB_RETRY_SECONDS', '5'))
+DOCKER_CACHE_NUM_RETRIES =      int(os.environ.get('DOCKER_CACHE_DOCKER_CACHE_NUM_RETRIES', '3'))
+DOCKER_CACHE_TIMEOUT_MINS =     int(os.environ.get('DOCKER_CACHE_DOCKER_CACHE_TIMEOUT_MINS', '15'))
+PARALLEL_BUILDS =               int(os.environ.get('DOCKER_CACHE_PARALLEL_BUILDS', '10'))
 
 Review comment:
   Jenkins environment variables are not versioned so far and thus can be changed without notice. For configuration like this, I'd prefer if we would have it in versioned configuration if you don't mind. 

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services