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

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

Open
lymberl opened this issue Feb 1, 2024 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@lymberl
Copy link

lymberl commented Feb 1, 2024

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 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.
<ItemGroup Label="ContainerAppCommand Assignment"> <ContainerAppCommand Include="echo" /> <ContainerAppCommandArgs Include="containersetupscript.sh" /> <ContainerAppCommandInstruction Include="Entrypoint" /> </ItemGroup>

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.

@baronfel
Copy link
Member

baronfel commented Oct 9, 2024

I have an example demonstrating custom entrypoints and such over here that might be helpful?

@baronfel baronfel added the documentation Improvements or additions to documentation label Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants