dotnet / dotnet/sdk-container-builds

ContainerAppCommandInstruction when set to Entrypoint does not use the arguments defined in the ContainerAppCommandArgs tag.

Open
#548 1 comment 1 reaction 0 assignees View on GitHub
documentation
Dominant language
No language data
Stars
197
Forks
53
PR merge metrics
No merged PRs in 30d

Description

When it builds a .NET8 Linux based image the following issue is occurring. To build the image the following command is used: dotnet publish --os linux --arch x64 -c Release /t:PublishContainer

In the [documentation](https://learn.microsoft.com/en-us/dotnet/core/docker/publish-as-container?pivots=dotnet-8-0#configure-container-commands) there is no example of how to use this. I have tried the below to run the _echo "containersetupscript.sh"_ command. But instead it produces _echo "dotnet dotnetApp.dll containersetupscript.sh"_ command.
`



`

It doesn't work since it displays "dotnet dotnetApp.dll containersetupscript.sh" instead of just "containersetupscript.sh". How to get rid of "dotnet dotnetApp.dll" and just display "containersetupscript.sh"?

Expected behaviour of the echo command is to just display "containersetupscript.sh". But it inserts "dotnet dontetApp.dll" also as arguments to the command i want.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the dotnet publish command and the ContainerAppCommand, ContainerAppCommandArgs, and ContainerAppCommandInstruction items shown in the issue, then compare them with the linked configure-container-commands documentation. Reproduce the generated command and verify that Entrypoint handling produces only the requested command and arguments, without the default dotnet invocation.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, docker
Domain
build-system, devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.