microsoft / microsoft/vscode-azurecontainerapps

ACR build fails if the `--platform` flag is included in the Dockerfile

Open
#540 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

AT-CTI
Dominant language
TypeScript
Stars
42
Forks
21
Avg merge
3d 7h
Merged PRs (30d)
2

Description

OS: All
Build Version: 20231030.6

Repro Steps:

  1. Create a .NET MVC project by command dotnet new mvc -> Open it in VS Code and add docker support files.
    mvc.zip
  2. Right click a container app environment -> Click "Create Container App..." -> Enter a name -> Select "Build from project remotely using Azure Container Registry" -> Select an azure container registry ->
    Select "+ Create new Azure Container Registry" -> Enter a name -> Select a SKU -> Select "Dockerfile" -> Enter -> Select "Linux" -> Skip for now -> Enable -> Select a HTTP traffic -> Enter.
  3. Check whether succeeds to create a container app or not.

Expect:
Succeed to create a container app with the .NET MVC project.

Actual:
Fail to create a container app with the .NET MVC project.
image
image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure with the attached mvc.zip project, a Dockerfile containing the --platform flag, and the VS Code "Create Container App" flow using a new Azure Container Registry. Trace the extension's remote Dockerfile build entry point and compare the request with a Dockerfile without that flag. Done means the .NET MVC project creates the container app successfully while retaining the --platform flag.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, docker, typescript, vscode
Domain
build-system, cloud, devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.