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 2018/11/15 18:30:46 UTC

[GitHub] marcoabreu opened a new pull request #13285: Force APT cache update before executing install

marcoabreu opened a new pull request #13285: Force APT cache update before executing install
URL: https://github.com/apache/incubator-mxnet/pull/13285
 
 
   Within our Docker caching, the APT cache is being persisted as well. Due to the inconsistent use of ``apt update``, this might lead to the Docker cache being refreshed partially while still using a stale APT cache.
   
   By running ``apt update`` before every ``apt install``, we ensure the repository is always in the latest state if that layer has to be refreshed.
   
   the ``|| true`` is added due to stability reasons. APT is not 100% available and we had problems because of that. By swallowing that error, we increase the tolerance. If the package is **really** missing during the installation stage (because it's not in the APT cache and updating the cache failed due to server errors), we will throw the error anyway. If we still have a good cache with the proper package present even though the update failed, this means that the update wasn't actually necessary and that we can still proceed. We already employed this mechanism in some places. Now we're making everything equal to harden all install scripts.

----------------------------------------------------------------
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