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

azure-cli and alpine:3.9 - requests dependencies #9167

Closed
lukasmrtvy opened this issue Apr 22, 2019 · 2 comments
Closed

azure-cli and alpine:3.9 - requests dependencies #9167

lukasmrtvy opened this issue Apr 22, 2019 · 2 comments
Assignees
Labels
Packaging/Docker question The issue doesn't require a change to the product in order to be resolved. Most issues start as that

Comments

@lukasmrtvy
Copy link

lukasmrtvy commented Apr 22, 2019

I have no luck with this Dockerfile on alpine:3.9.
Can anyone check dependecies?
Thanks

FROM alpine:3.9

ENV AZ 2.0.62

RUN apk add -U python3 bash && \
    apk add --virtual=build gcc python3-dev musl-dev libffi-dev openssl-dev make  && \
    pip3 install azure-cli==${AZ} && \
    ln -s /usr/bin/python3 /usr/bin/python

log output:

...
requests 2.21.0 has requirement urllib3<1.25,>=1.21.1, but you'll have urllib3 1.25 which is incompatible
azure-cli-appservice 0.2.17 has requirement cryptography<2.5, but you'll have cryptography 2.6.1 which is incompatible.
...

az login output:

/usr/lib/python3.6/site-packages/requests/__init__.py:91: RequestsDependencyWarning: urllib3 (1.25) or chardet (3.0.4) doesn't match a supported version!
  RequestsDependencyWarning)
WARNING: To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code <CODE> to authenticate

Reference: #8863

Workaround

RUN apk add -U python3 bash && \
    apk add --virtual=build gcc python3-dev musl-dev libffi-dev openssl-dev make  && \
    pip3 install --upgrade requests && \
    pip3 install azure-cli==${AZ} && \
    ln -s /usr/bin/python3 /usr/bin/python
@marstr marstr added question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Packaging/Docker labels Apr 23, 2019
@marstr marstr self-assigned this Apr 23, 2019
@rcarun
Copy link

rcarun commented May 28, 2019

@marstr any update on this issue?

@marstr
Copy link
Member

marstr commented May 28, 2019

Sorry, should have closed the loop. This is a dupe of #9257

Basically though, the answer is that the workaround presented is a totally viable one without any drawbacks. (Other than having to had applied a workaround, which stinks in and of itself.) Since this issue was filed, we've locked down the particular version of urllib3 in all of our release channels to squash this error. Also, in #9257 there's a discussion about our long term plan to create reproducible builds.

@marstr marstr closed this as completed May 28, 2019
@haroldrandom haroldrandom added Packaging/Docker question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Oct 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Packaging/Docker question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Projects
None yet
Development

No branches or pull requests

4 participants