Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
RollsChris opened this issue Mar 8, 2024 · 6 comments
Labels
bug triage Issues that need to be looked at

Comments

@RollsChris
Copy link

RollsChris commented Mar 8, 2024

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 RollsChris added bug triage Issues that need to be looked at labels Mar 8, 2024
@RollsChris
Copy link
Author

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

@Clockwork-Muse
Copy link

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.

@RollsChris
Copy link
Author

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

@RollsChris
Copy link
Author

Any news on this? whats the work around?

@Clockwork-Muse
Copy link

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

@RollsChris
Copy link
Author

Hey, do you know when its being released?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug triage Issues that need to be looked at
Projects
None yet
Development

No branches or pull requests

2 participants