-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Unable to install azure cli in ostree environment #30683
Comments
Thank you for opening this issue, we will look into it. |
Awesome, let me know if you need more infos. Update FROM quay.io/fedora/fedora-silverblue:41
RUN curl -L https://aka.ms/InstallAzureCli -o /tmp/install_azure_cli.sh
RUN chmod +x /tmp/install_azure_cli.sh
RUN /tmp/install_azure_cli.sh But that also seems not to work. --> 0d32bf932a2d
STEP 6/15: RUN curl -L https://aka.ms/InstallAzureCli -o /tmp/install_azure_cli.sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 1405 100 1405 0 0 1588 0 --:--:-- --:--:-- --:--:-- 8619
--> abf06282bb13
STEP 7/15: RUN chmod +x /tmp/install_azure_cli.sh
--> ede8dfa46533
STEP 8/15: RUN /tmp/install_azure_cli.sh
Downloading Azure CLI install script from https://azurecliprod.blob.core.windows.net/install.py to /tmp/azure_cli_install_tmp_Hu5FXr.
######################################################################## 100.0%
/tmp/azure_cli_install_tmp_Hu5FXr: OK
Running install script.
/tmp/install_azure_cli.sh: line 42: /dev/tty: No such device or address
Error: building at STEP "RUN /tmp/install_azure_cli.sh": while running runtime: exit status 1 Workaround alias az=podman run --rm -it -v $HOME/.azure:/root/.azure:z mcr.microsoft.com/azure-cli az |
Another Workaround In case some other scripts need to access #!/bin/bash
podman run --rm -it -v $HOME/.azure:/root/.azure:z -v ${PWD}:/current:z -w /current mcr.microsoft.com/azure-cli az "$@" |
You don't provide the full Dockerfile. I'm confused, are you trying to use the RHEL guide to install azure-cli in Fedora? We don't have an official build for Fedora, but there's a community version you can try. |
Hi @bebound , I think that breaks it down the minimal image: FROM quay.io/fedora/fedora-silverblue:41
RUN rpm --import https://packages.microsoft.com/keys/microsoft.asc
RUN rpm-ostree install -y https://packages.microsoft.com/config/rhel/9.0/packages-microsoft-prod.rpm At the end you should end up with a bootable fedora:41 that has I can confirm that the installation of the azure-cli works on a mutable fedora:41 system. |
I don't know about mutable or immutable Fedora, but at least RHEL 9 is supported.
|
I started using the fedora version of azure-cli. It throughts some error messages, but it works. Thanks for your help! |
Describe the bug
I followed the official installation guide. Installing azure cli similar to other packages:
After a reboot, I can see the package got installed:
Related command
Afterwards I am unable to find the cli script.
Errors
None
Issue script & Debug output
The Installation seems to be successful.
Expected behavior
Azure cli appears in filesystem.
Environment Summary
Installation failed.
Additional context
No response
The text was updated successfully, but these errors were encountered: