chore: Remove google-cloud-sdk archive from python image#390
Open
clundin25 wants to merge 2 commits intogoogleapis:mainfrom
Open
chore: Remove google-cloud-sdk archive from python image#390clundin25 wants to merge 2 commits intogoogleapis:mainfrom
clundin25 wants to merge 2 commits intogoogleapis:mainfrom
Conversation
Currently the tar archive for the google-cloud-sdk is not deleted after it is unpacked. This bloats the resulting docker image with ~189 MB of unused data. ``` (base) root@8eda5cb5bf03:/# ls -lh total 272M -rw-r--r-- 1 root root 83M Nov 22 2023 Mambaforge.sh lrwxrwxrwx 1 root root 7 Oct 3 2023 bin -> usr/bin drwxr-xr-x 2 root root 4.0K Apr 15 2020 boot drwxr-xr-x 5 root root 360 Jun 27 16:42 dev drwxr-xr-x 1 root root 4.0K Jun 27 16:42 etc drwxr-xr-x 15 root root 4.0K Jun 27 16:49 google-auth-library-python drwxr-xr-x 1 root root 4.0K Nov 22 2023 google-cloud-sdk -rw-r--r-- 1 root root 189M Feb 28 2023 google-cloud-sdk-420.0.0-linux-x86_64.tar.gz . . . ``` Removing the tar.gz file after unpacking it will slim the resulting image by ~189 MB.
Contributor
|
/gcbrun |
Author
|
@parthea it looks like Python 3.7 is no longer working with the get-pip.py script. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Currently the tar archive for the google-cloud-sdk is not deleted after
it is unpacked. This bloats the resulting docker image with ~189 MB of
unused data.
Removing the tar.gz file after unpacking it will slim the resulting
image by ~189 MB.