Run powershell samples in clean dotnet core container #4460
Labels
Issue-Question
ideally support can be provided via other mechanisms, but sometimes folks do open an issue to get a
Resolution-Answered
The question is answered.
Resolution-Duplicate
The issue is a duplicate.
Projects
Milestone
I am trying to run dot-net core app from "Host Powershell" section., https://github.com/PowerShell/PowerShell/tree/master/docs/host-powershell
So I can run .net app which require PS sessions support in minimalistic environment
Steps to reproduce
This comes from Docker hub plus code to install repo and pull Powershell repo, so there is standard and ready environment for the test
Then, run
docker build -t powershell_test -f Dockerfile.1.1.2_ps . & docker run -ti --rm powershell_test
You'll end up in sample-dotnet1.1 app directory.
Next,
dotnet restore ./MyApp/MyApp.csproj
This one succeeded and proper NuGet packckages are pulled, as it mentioned here:
#2284
Then, start application:
dotnet run --project ./MyApp/MyApp.csproj
Expected behavior
Application runs and produce output:
Actual behavior
Environment data
Not being expert in .dotnet it is not quite clear what is missing here. I've tried to set different RID in project, "debian.8-x64" from "dotnet --info". Tried to publish & run. Tried to set AppBase to "/opt/microsoft/powershell/6.0.0-beta.4/"
Same error. Ok, if there some Win-only assemblies, why "powershell" executable works right in the same container? It is using the same assemblies. Or, not,
I am looking for a simple and concise answer for "mere mortals". Otherwise, I have to run a hybrid swarm with Linux and Windows node just for Powershell only. Dealing with Windows docker is pain, just pain and bugs. Even after having few successful Linux Docker deliveries
The text was updated successfully, but these errors were encountered: