Skip to content
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

Ship azure-cli as binary instead as Python module #23397

Open
mblaschke-daimlertruck opened this issue Aug 1, 2022 · 3 comments
Open

Ship azure-cli as binary instead as Python module #23397

mblaschke-daimlertruck opened this issue Aug 1, 2022 · 3 comments
Assignees
Labels
Azure CLI Team The command of the issue is owned by Azure CLI team Core CLI core infrastructure customer-reported Issues that are reported by GitHub users external to the Azure organization. feature-request Installation
Milestone

Comments

@mblaschke-daimlertruck
Copy link

Azure-cli is currently shipped as Python module which requires the installation of Python.
On Linux (eg. Docker images) it installs ~1 GB of runtime and modules (related to #23366)

Shipping the azure-cli as standalone binary would improve the situation and would make azure-cli independent from the installed Python runtime.

Example:
docker-compose 1.x was shipped as standalone binary with ~10 MiB.

@ghost ghost added the customer-reported Issues that are reported by GitHub users external to the Azure organization. label Aug 1, 2022
@yonzhan yonzhan added Core CLI core infrastructure Installation feature-request labels Aug 1, 2022
@yonzhan yonzhan added this to the Backlog milestone Aug 1, 2022
@yonzhan
Copy link
Collaborator

yonzhan commented Aug 1, 2022

@jiasli for awareness

@jiasli
Copy link
Member

jiasli commented Aug 1, 2022

The latest Azure CLI composes of 66 command modules and 4785 commands. The versatility certainly justifies its size.

We are working right now on reducing Azure CLI package size. You may check more details in #7387.

Previously, we indeed tried to package Azure CLI as one executable utilizing PyInstaller (#16115), but we realized the executable would be hundreds of MBs, which is certainly not a good idea.

@yonzhan yonzhan added the Azure CLI Team The command of the issue is owned by Azure CLI team label Aug 14, 2022
@mblaschke-daimlertruck
Copy link
Author

any progress?

az cli is still bigger than my whole IDE, the container image still has ~600 MiB.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Azure CLI Team The command of the issue is owned by Azure CLI team Core CLI core infrastructure customer-reported Issues that are reported by GitHub users external to the Azure organization. feature-request Installation
Projects
None yet
Development

No branches or pull requests

3 participants