-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update launch.json when adding modules (#262)
* Scaffold solution from files instead of zip * Update launch.js when adding modules * Fix stuck on POSIX when adding node.js modules * Adding template files to manifest.
- Loading branch information
Showing
14 changed files
with
385 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
include HISTORY.rst | ||
include LICENSE | ||
include README.md | ||
include iotedgedev/template/template.zip | ||
include iotedgedev/monitor.js | ||
include iotedgedev/template/*.* | ||
recursive-include tests * | ||
recursive-exclude * __pycache__ | ||
recursive-exclude * *.py[co] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "%MODULE% Remote Debug (.NET Core)", | ||
"type": "coreclr", | ||
"request": "attach", | ||
"processId": "${command:pickRemoteProcess}", | ||
"pipeTransport": { | ||
"pipeProgram": "docker", | ||
"pipeArgs": [ | ||
"exec", | ||
"-i", | ||
"%MODULE%", | ||
"sh", | ||
"-c" | ||
], | ||
"debuggerPath": "~/vsdbg/vsdbg", | ||
"pipeCwd": "${workspaceFolder}", | ||
"quoteArgs": true | ||
}, | ||
"sourceFileMap": { | ||
"%APP_FOLDER%": "${workspaceFolder}/modules/%MODULE_FOLDER%" | ||
}, | ||
"justMyCode": true | ||
}, | ||
{ | ||
"name": "%MODULE% Local Debug (.NET Core)", | ||
"type": "coreclr", | ||
"request": "launch", | ||
"program": "${workspaceRoot}/modules/%MODULE_FOLDER%/bin/Debug/netcoreapp2.0/%MODULE%.dll", | ||
"args": [], | ||
"cwd": "${workspaceRoot}/modules/%MODULE_FOLDER%", | ||
"internalConsoleOptions": "openOnSessionStart", | ||
"stopAtEntry": false, | ||
"console": "internalConsole", | ||
"env": { | ||
"EdgeHubConnectionString": "${config:azure-iot-edge.EdgeHubConnectionString}", | ||
"EdgeModuleCACertificateFile": "${config:azure-iot-edge.EdgeModuleCACertificateFile}" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "%MODULE% Remote Debug (Node.js)", | ||
"type": "node", | ||
"request": "attach", | ||
"port": 9229, | ||
"address": "localhost", | ||
"localRoot": "${workspaceRoot}/modules/%MODULE_FOLDER%", | ||
"remoteRoot": "/app", | ||
"protocol": "inspector" | ||
}, | ||
{ | ||
"name": "%MODULE% Remote Debug (Node.js in Windows Container)", | ||
"type": "node", | ||
"request": "attach", | ||
"port": 9229, | ||
"address": "localhost", | ||
"localRoot": "${workspaceRoot}/modules/%MODULE_FOLDER%", | ||
"remoteRoot": "C:\\app", | ||
"protocol": "inspector" | ||
}, | ||
{ | ||
"name": "%MODULE% Local Debug (Node.js)", | ||
"type": "node", | ||
"request": "launch", | ||
"program": "${workspaceRoot}/modules/%MODULE_FOLDER%/app.js", | ||
"console": "integratedTerminal", | ||
"env": { | ||
"EdgeHubConnectionString": "${config:azure-iot-edge.EdgeHubConnectionString}", | ||
"EdgeModuleCACertificateFile": "${config:azure-iot-edge.EdgeModuleCACertificateFile}" | ||
} | ||
} | ||
] | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{ | ||
"modulesContent": { | ||
"$edgeAgent": { | ||
"properties.desired": { | ||
"schemaVersion": "1.0", | ||
"runtime": { | ||
"type": "docker", | ||
"settings": { | ||
"minDockerVersion": "v1.25", | ||
"loggingOptions": "" | ||
} | ||
}, | ||
"systemModules": { | ||
"edgeAgent": { | ||
"type": "docker", | ||
"settings": { | ||
"image": "mcr.microsoft.com/azureiotedge-agent:${RUNTIME_TAG}", | ||
"createOptions": "" | ||
} | ||
}, | ||
"edgeHub": { | ||
"type": "docker", | ||
"status": "running", | ||
"restartPolicy": "always", | ||
"settings": { | ||
"image": "mcr.microsoft.com/azureiotedge-hub:${RUNTIME_TAG}", | ||
"createOptions": "{\"HostConfig\":{\"PortBindings\":{\"8883/tcp\":[{\"HostPort\":\"8883\"}],\"443/tcp\":[{\"HostPort\":\"443\"}]}}}" | ||
} | ||
} | ||
}, | ||
"modules": { | ||
"tempSensor": { | ||
"version": "1.0", | ||
"type": "docker", | ||
"status": "running", | ||
"restartPolicy": "always", | ||
"settings": { | ||
"image": "mcr.microsoft.com/azureiotedge-simulated-temperature-sensor:${RUNTIME_TAG}", | ||
"createOptions": "" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"$edgeHub": { | ||
"properties.desired": { | ||
"schemaVersion": "1.0", | ||
"routes": { | ||
"sensorTofiltermodule": "FROM /messages/modules/tempSensor/outputs/temperatureOutput INTO BrokeredEndpoint(\"/modules/filtermodule/inputs/input1\")" | ||
}, | ||
"storeAndForwardConfiguration": { | ||
"timeToLiveSecs": 7200 | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.