iotedgedev icon indicating copy to clipboard operation
iotedgedev copied to clipboard

[BUG] Running "iotedgedev solution init --template csharp" does not generate module.json or dockerfiles for the example module

Open RollsChris opened this issue 1 year ago • 6 comments

Description

Running "iotedgedev solution init --template csharp" does not generate module.json or Dockerfiles for the example filtermodule.

Expected behavior

I expect to see:

  • module.json
  • Dockerfile
  • Dockerfile.amd64.debug

Actual behavior

None of the above exist in the module folder

Steps to Reproduce

Run "iotedgedev solution init --template csharp"

Environment

Default from "iotedgedev "container image

  • iotedgedev, version 3.3.7
  • Python 2.7.18
  • pip 22.3.1 from /usr/local/lib/python3.9/dist-packages/pip (python 3.9)
  • Windows
  • Linux iotedgedev container

RollsChris avatar Mar 08 '24 10:03 RollsChris

even the documentation has this for the expected project output:

│  .env
│  .gitignore
│  deployment.debug.template.json
│  deployment.template.json
│
├─.vscode
│      launch.json
│
└─modules
    └─filtermodule
        │  .gitignore
        │  Dockerfile.amd64
        │  Dockerfile.amd64.debug
        │  Dockerfile.arm32v7
        │  Dockerfile.windows-amd64
        │  filtermodule.csproj
        │  module.json
        │  Program.cs

RollsChris avatar Mar 08 '24 10:03 RollsChris

The short answer is that they're trying to remove the need for (at minimum) the various Dockerfiles, since that's an extra maintenance burden for customers that's rarely customized and can usually be provided by built-in or other tools (eg, buildpaks). The problem is that the deployment templating tools don't recognize it yet, so the module just isn't included/built.

Clockwork-Muse avatar Mar 11 '24 18:03 Clockwork-Muse

ahh ok, a bit annoying. Not sure i like that feature of dotnet publish hiding the Dockerfiles etc. But is what it is

RollsChris avatar Mar 12 '24 16:03 RollsChris

Any news on this? whats the work around?

RollsChris avatar May 08 '24 09:05 RollsChris

@RollsChris - In an un-released version of the tool done recently they pinned an old version of the template that performs the generation

Clockwork-Muse avatar May 08 '24 17:05 Clockwork-Muse

Hey, do you know when its being released?

RollsChris avatar Jul 10 '24 07:07 RollsChris