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

Question: Azure DevOps extension in offline environments #1055

Open
NenoLoje opened this issue Oct 5, 2020 · 2 comments
Open

Question: Azure DevOps extension in offline environments #1055

NenoLoje opened this issue Oct 5, 2020 · 2 comments

Comments

@NenoLoje
Copy link

NenoLoje commented Oct 5, 2020

How to set up the Azure DevOps extension in an offline environment?

I see that the Azure CLI supports installing from a local source like this:
az extension add –source …

… but this doesn't seem to be enough. (It fails when it runs "pip", which tries to connect to public sources…).

Any tips on how an offline / or x-copy-like deployment looks like?

@fedorbirjukov
Copy link

fedorbirjukov commented Mar 5, 2021

Instructions extended with tips from the cross-post in azure-cli-extensions:

  • Download the latest wheel (*.whl) from https://github.com/Azure/azure-devops-cli-extension/releases
  • Download the wheel for distro==1.3.0: pip wheel --wheel-dir ~\Downloads distro==1.3.0 --no-deps
  • In your offline environment use: pip install --target ~/.azure/cliextensions/azure-devops --no-deps --no-index --find-links=~\Downloads azure_devops distro

An alternative would be to let pip use a private pypi index by setting PIP_INDEX_URL and possibly some other environment variables (most/all cli options can be passed via environment variables to pip).

The fact that the following steps fail with an error looks like a bug to me:

The last step gives this error in offline environment: An error occurred. Pip failed with status code 1. Use --debug for more information. And if you re-run with debug you see that it's trying to install distro==1.3.0 from pypi.org.

@tinomthomas
Copy link

tinomthomas commented Apr 8, 2021

@fedorbirjukov The first solution is not working for me as it requires another package called keyring when I try to login to the devops server using az devops login

When I try to install keyring also manually, it complains that there is a version conflict with setuptools

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants