Comments (5)
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.
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.
from sdk-container-builds.
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.
@baronfel Can you be more specified or give an example? thanks in advance.
from sdk-container-builds.
Related Issues (20)
- Unable to publish console app as container HOT 1
- warning NETSDK1198: A publish profile with the name 'DefaultContainer' was not found in the project HOT 4
- Pushing to ACR (Azure Container Registry)
- Warning about explicit reference for console apps (8.0.200) HOT 2
- Container inferencing for AOT can move to stable repo HOT 4
- `<ContainerFamily>alpine-extra</ContainerFamily>` must be set when `<InvariantGlobalization>false</InvariantGlobalization>` HOT 9
- Determine inferencing for new Ubuntu `noble` images HOT 2
- PublishContainer Appends "dotnet <Target>.dll" to ENTRYPOINT for NativeAOT Builds HOT 11
- Output the newly-created images' full name from PublishContainer
- Add support for OCI Image Index v1 HOT 5
- Missing debug profile (compability) with worker projects HOT 4
- EnableSdkContainerDebugging causes build failure if ContainerImageTags is set
- Unable to use the ContainerRegistry as parameter on dotnet publish HOT 8
- Build fails when using ContainerBaseImage hosted within Quay with Ceph storage backplane HOT 3
- Container Publish: OCI base image without optional root mediaType fails HOT 6
- Provide a warning when a base image is unsupported
- Add an example Dockerfile to illustrate what the SDK tools do
- Document support for insecure registries HOT 5
- ContainerRepository value with a 'folder' that ends in a `'` doesn't give a good error HOT 2
- Support insecure registries with untrusted HTTPS certificates
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sdk-container-builds.