You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2021/07/28 16:44:15 UTC
[GitHub] [tvm] leandron opened a new pull request #8575: [CI] Disable pip cache when creating Docker images
leandron opened a new pull request #8575:
URL: https://github.com/apache/tvm/pull/8575
Disable pip cache when creating Docker images:
* This is a good practice to save storage space in the Docker images being created
* Also sort pip package lists alphabetically
In summary, this saves around **700Mb** on the ci_cpu image, and **1.6Gb** on the ci_gpu image.
cc @tqchen @areusch @mbrookhart for reviews
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [tvm] areusch merged pull request #8575: [CI] Disable pip cache when creating Docker images
Posted by GitBox <gi...@apache.org>.
areusch merged pull request #8575:
URL: https://github.com/apache/tvm/pull/8575
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [tvm] areusch commented on a change in pull request #8575: [CI] Disable pip cache when creating Docker images
Posted by GitBox <gi...@apache.org>.
areusch commented on a change in pull request #8575:
URL: https://github.com/apache/tvm/pull/8575#discussion_r678488501
##########
File path: docker/Dockerfile.ci_arm
##########
@@ -23,6 +23,9 @@ FROM ubuntu:18.04
RUN apt-get update --fix-missing
RUN apt-get install -y ca-certificates gnupg2
+# Globally disable pip cache
+RUN pip config set global.cache-dir false
Review comment:
is it `global.no-cache-dir` or `global.cache-dir`?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [tvm] leandron commented on a change in pull request #8575: [CI] Disable pip cache when creating Docker images
Posted by GitBox <gi...@apache.org>.
leandron commented on a change in pull request #8575:
URL: https://github.com/apache/tvm/pull/8575#discussion_r678501735
##########
File path: docker/Dockerfile.ci_arm
##########
@@ -23,6 +23,9 @@ FROM ubuntu:18.04
RUN apt-get update --fix-missing
RUN apt-get install -y ca-certificates gnupg2
+# Globally disable pip cache
+RUN pip config set global.cache-dir false
Review comment:
I tried it locally and it seems to work to set the global config and preventing the cache to be created.
When using it in an individual `pip install —no-cache-dir foo` it seems to be the way to disable in one instance, but I decided not going this way, because there is always a new pip install in those scripts.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org