Azure / Azure/azure-functions-core-tools
Running "func azure functionapp publish ..." inside docker container
- Dominant language
- C#
- Stars
- 1.5k
- Forks
- 498
- Avg merge
- 5d 4h
- Merged PRs (30d)
- 15
Description
Hi! I am working on a prototype where I need to run a deploy command at run time, in my docker image I install Azure CLI and core web tools, but at runtime the deploy command always fails inside the docker container, the issue comes from core web tools cli: "System. Exception: Cannot find the Local Application Data.".
The error occurs inside the process of "Azure.Functions.Cli.Telemetry. Telemetry. InitializeTelemetry ()".
Note: I have been trying to solve this for couple of days now, it is not related to the architecture where docker daemon is running since I have tested it on mac, windows, azure directly. Both amd64 and x86_64. The image is based on ubuntu:20.04
Would be awesome if someone has faced something like this or have any idea what is the issue. Thanks
Contributor guide
Research direction
Reproduce `func azure functionapp publish ...` in an `ubuntu:20.04` Docker image with Azure CLI and the core tools installed. Start with the reported `Azure.Functions.Cli.Telemetry.Telemetry.InitializeTelemetry()` failure and the missing Local Application Data error; done means the publish command runs successfully inside the container.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, docker, ubuntu
- Domain
- cli, cloud, devops
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100