-
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 az cli on alpine #8863
Comments
@marstr, any thoughts? |
Hi I figured out the issue, it working fine if I use
But when I try to use python3, I am not able to find anything similar to py-pip to make it work and it is failing. |
Howdy @revanthalampally, Tinkering with your Dockerfile just a little, updating it to the following:
I can successfully invoke the cli by running: /azure-cli/bin/python -m azure.cli <args> You could then create a basic launcher by putting the following in #!/usr/bin/env sh
/azure-cli/bin/python -m azure.cli "$@"
|
Given that I've tested this workaround, I'm going to close this issue out :) Let me know if it isn't working for you though, and I'll open it back up. |
Can I know what would be the dockerfile with alpine:3.7 |
Getting this error with 3.7
|
Looks to me like you need the linux-headers package. |
@marstr Yes, I had added that and it worked. Forgot to update it here thanks.
|
I have no luck with:
Log:
az login:
|
I face the same issue . I created a docker container using Dockerfile. && apk add --virtual=build gcc libffi-dev musl-dev openssl-dev make python3-dev but still the Azure DevOps container job fail with the error ##[error]Azure CLI 2.x is not installed on this machine. Can you please let me know is there anything i can do with path or do I need to install Azure cli by some other means ?? |
@marstr : I used your approach but still the azure cli failed with an error My docker file looks like: ENV HELM_LATEST_VERSION="v3.0.0" RUN apk add --no-cache ca-certificates=20190108-r0 |
My Dockerfile looks like this:
I get error like:
I have tried with python2.7 also I get the same error. Is it to with Alpine because I dont have any issues on my Mac or other machine.
The text was updated successfully, but these errors were encountered: