Skip to content

Explicitly empty ~/.cache #103

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 19, 2016
Merged

Conversation

mattrobenolt
Copy link
Contributor

This shaves off ~1.1MB off the container builds. We do --no-cache-dir on
pip install, but turns out, this isn't enough. Stuff from within
get-pip.py ends up leveraging the http cache as well, so we should
just nuke it entirely.

@yosifkit
Copy link
Member

Oh pip... 😞 LGTM

@tianon
Copy link
Member

tianon commented Apr 19, 2016

Can we use ~/.cache instead just to help insulate ourselves a tiny bit from HOME screwiness? 😇

@mattrobenolt
Copy link
Contributor Author

Can we use ~/.cache instead just to help insulate ourselves a tiny bit from HOME screwiness? 😇

Is it possible that it'd be built while running under a different user? I'm not against the change, just curious why that scenario may happen.

This shaves off ~1.1MB off the container builds. We do --no-cache-dir on
`pip install`, but turns out, this isn't enough. Stuff from within
`get-pip.py` ends up leveraging the http cache as well, so we should
just nuke it entirely.
@mattrobenolt mattrobenolt changed the title Explicitly empty /root/.cache Explicitly empty ~/.cache Apr 19, 2016
@mattrobenolt
Copy link
Contributor Author

Updated to use ~ instead of /root

@tianon
Copy link
Member

tianon commented Apr 19, 2016 via email

@tianon
Copy link
Member

tianon commented Apr 19, 2016

You were faster than GitHub's email to comment gateway 😆

LGTM, thanks 👍

@tianon tianon merged commit 6452851 into docker-library:master Apr 19, 2016
@mattrobenolt mattrobenolt deleted the slimmer branch April 20, 2016 00:00
tianon added a commit to infosiftr/stackbrew that referenced this pull request Apr 20, 2016
- `drupal`: 8.1 GA
- `mariadb`: add xtrabackup for Galera (MariaDB/mariadb-docker#47)
- `pypy`: 5.1.0
- `python`: empty `~/.cache` (docker-library/python#103)
- `redis`: use `su-exec` in Alpine variants (redis/docker-library-redis#54)
- `rocket.chat`: 0.27.0
RichardScothern pushed a commit to RichardScothern/official-images that referenced this pull request Jun 14, 2016
- `drupal`: 8.1 GA
- `mariadb`: add xtrabackup for Galera (MariaDB/mariadb-docker#47)
- `pypy`: 5.1.0
- `python`: empty `~/.cache` (docker-library/python#103)
- `redis`: use `su-exec` in Alpine variants (redis/docker-library-redis#54)
- `rocket.chat`: 0.27.0
JayH5 added a commit to praekeltfoundation/docker-alpine-python that referenced this pull request Jul 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy