IssueRaiser

google-cloud-cli has a huge install size

It's something like 1 gigabyte of install size when I follow the instructions on https://cloud.google.com/storage/docs/gsutil_install (and then I'm not even counting the dependencies, I'm only looking at `/usr/lib/google-cloud-sdk`) This seems very excessive for what is supposed to be just a command line interface to a cloud platform. Please consider being a bit more size-aware when packaging these things. For example, I see a huge unstripped binary in `/usr/lib/google-cloud-sdk/bin/anthoscli` (174 MB) and a big uncompressed JSON file in `/usr/lib/google-cloud-sdk/data/cli/gcloud.json` (83 MB). Also it looks like a bunch of test code is being shipped as part of the package: ``` $ ls -R /usr/lib/google-cloud-sdk |grep test |wc -l 1609 ``` which makes me think this is not actually a packaged tool but more like a dump of a development repository. It feels like there is a lot of low hanging fruit to reduce the install size of this tool.

Posted by jonsneyers on Aug 2, 2023, 7:30 AM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.2,000 issues0 comments

onboarding (Other)

google-cloud-cli has a huge install size

jonsneyersAug 2, 2023, 7:30 AM

It's something like 1 gigabyte of install size when I follow the instructions on https://cloud.google.com/storage/docs/gsutil_install (and then I'm not even counting the dependencies, I'm only looking at `/usr/lib/google-cloud-sdk`) This seems very excessive for what is supposed to be just a command line interface to a cloud platform. Please consider being a bit more size-aware when packaging these things. For example, I see a huge unstripped binary in `/usr/lib/google-cloud-sdk/bin/anthoscli` (174 MB) and a big uncompressed JSON file in `/usr/lib/google-cloud-sdk/data/cli/gcloud.json` (83 MB). Also it looks like a bunch of test code is being shipped as part of the package: ``` $ ls -R /usr/lib/google-cloud-sdk |grep test |wc -l 1609 ``` which makes me think this is not actually a packaged tool but more like a dump of a development repository. It feels like there is a lot of low hanging fruit to reduce the install size of this tool.

Comments (0)

No comments yet. Start the discussion.

Comment on this issue