Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

[V2] C# module template generated dockerfile contains an invalid entry point when using a hyphen in the module name #581

Open
krdmllr opened this issue Apr 22, 2018 · 4 comments
Labels

Comments

@krdmllr
Copy link

krdmllr commented Apr 22, 2018

Hello there,

i just created a new c# module project following the official tutorial: https://docs.microsoft.com/en-us/azure/iot-edge/tutorial-csharp-module

I used a hyphen in the module name (socket-module) but the generated dockerfile contains the following entrypoint:

ENTRYPOINT ["dotnet", "socket_edge.dll"]

When deploying the module to my device (arm32) the module exited with a code 145 and i found the following error in the docker logs of the module:
Did you mean to run dotnet SDK commands? Please install dotnet SDK from: ...

When changing the entrypoint to:

ENTRYPOINT ["dotnet", "socket-edge.dll"]

everything works as expected

@varunpuranik
Copy link
Collaborator

Thanks for reporting this issue. It looks like a bug in the tooling, we will investigate.

@varunpuranik
Copy link
Collaborator

Turns out that this issue is stemming from a dotnet bug (dotnet/templating#1168). We are investigating if we can do something about it on our side. Meanwhile, can you work around this by not having a "-" in the module name?

@krdmllr
Copy link
Author

krdmllr commented May 3, 2018

Like i wrote, just changing the ENTRYPOINT in the dockerfile fixed everything :)

Looking at the issue you linked, the bug is all over the place

@syedhassaanahmed
Copy link

Just bumped into this myself. Thanks @krdmllr for specifying the fix.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants