Code Monkey home page Code Monkey logo

Comments (5)

lymberl avatar lymberl commented on June 13, 2024 1

if you add
<ItemGroup Label="ContainerAppCommand Assignment"> <!-- Set the entrypoint to the setup script --> <ContainerAppCommand Include="echo" /> </ItemGroup> <ItemGroup> <ContainerAppCommandArgs Include="containersetupscript.sh" /> </ItemGroup>
it will display dotnet dotnetApp.dll containersetupscript.sh. So it is adding dotnet and the dll name as arguments to the command which seems to be a bug.

from sdk-container-builds.

baronfel avatar baronfel commented on June 13, 2024

You can set your own Entrypoint script + args with the ContainerAppCommand items - though another pathway would be to modify the SSL Conf file and mount that in during container execution via -v commands.

In general, the SDK Containers tech does not support RUN commands and cannot because it doesn't run a Linux VM, so we have to find alternative ways to accomplish the same goal.

from sdk-container-builds.

lymberl avatar lymberl commented on June 13, 2024

from sdk-container-builds.

lymberl avatar lymberl commented on June 13, 2024

I have added the following to the csproj file but it doesnt run the script
<ItemGroup Label="ContainerAppCommand Assignment"> <!-- Set the entrypoint to the setup script --> <ContainerAppCommand Include="bash" /> </ItemGroup> <ItemGroup> <ContainerAppCommandArgs Include="containersetupscript.sh" /> </ItemGroup>
and when i inspect the container it lists the following. It seems to also add the dotnet and dll as arguments even though i have not specified them.
"Path": "bash", "Args": [ "dotnet", "dotnetApp.dll", "containersetupscript.sh" ]

The logs end up displaying /usr/bin/dotnet: /usr/bin/dotnet: cannot execute binary file

from sdk-container-builds.

clement128 avatar clement128 commented on June 13, 2024

@baronfel Can you be more specified or give an example? thanks in advance.

from sdk-container-builds.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.