azure-devops-cli-extension: Artifacttool doesn't work on docker image

The latest version on Docker Hub is 0.1.3: https://hub.docker.com/r/microsoft/vsts-cli/tags/

Here’s the page I’m referring to: https://docs.microsoft.com/en-us/cli/vsts/install?view=vsts-cli-latest

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 18 (11 by maintainers)

Most upvoted comments

Everything is now working (and has been for a bit, sorry for the lack of update), except that the azure-cli docker image is missing 2 required dependencies: libintl and icu-libs

That is, the following works today:

docker run -it mcr.microsoft.com/azure-cli
az extension add --name azure-devops
apk update
apk add libintl icu-libs
az login
az artifacts universal publish --organization https://dev.azure.com/{organization} --feed "{feed}" --name "the-bin-folder" --version "0.0.1" --path bin

I’ve filed https://github.com/Azure/azure-cli/issues/9276 to see if we can get these dependencies into the azure-cli image

Thanks for reporting the issue. @zarenner would the distro package change you have in #324 at the moment resolve this?

Sorry for the delay here. I tried running the existing ArtifactTool with various compat libraries on Alpine with no success.

There’s a bunch of stuff needed to get ArtifactTool (which is dotnet-based) officially supported on Alpine:

  1. ArtifactTool needs to move to .NET Core 2.1 and build self-contained for alpine-x64.
  2. We need to make a change in VSTS CLI to send additional information to identify itself as alpine (right now it just sends that it’s Linux and x64 😢)
  3. We need to deploy a tiny bit of service logic to send down the alpine variant of artifacttool.
  4. We very likely need to add additional dotnet dependencies to the vsts-cli docker image.

1 is done, 2 is pending PR, 3 is pending deployment. edit: updated status

Thank you @rorpage for the offer. @zarenner is looking into this.