-
On your computer, register the device in Cumulocity using the bulk registration api to create a username/password for the device.
c8y deviceregistration register-basic \ --id tedge-flows-demo2 \ --outputTemplate "std.manifestTomlEx({c8y:{username: output.username, password: output.password}}, '')"
This file contains hidden or 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
| #!/bin/sh | |
| MODEL=$(cat /proc/cpuinfo | grep Model | cut -d: -f2- | xargs) | |
| OS_NAME=$(cat /etc/os-release | grep PRETTY_NAME | cut -d= -f2- | tr -d '"') | |
| printf '\n' | |
| printf 'Debug information: (copy/paste to the ticket)\n' | |
| printf '\n' | |
| printf '|Property|Value|\n' | |
| printf '|--------|-----|\n' | |
| printf '|OS [incl. version]|`%s`|\n' "${OS_NAME:-unknown}" |
The script is a convience script to get started with thin-edge.io and AWS as quick as possible.
By default thin-edge.io will only be installed if it is not already, but if you want to update to the latest version you can provide the --update flag.
For more details check the --help of the script.
This file contains hidden or 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
| docker run \ | |
| --name {{printf "%q" .Name}} \ | |
| {{- with .HostConfig}} | |
| {{- if .Privileged}} | |
| --privileged \ | |
| {{- end}} | |
| {{- if .AutoRemove}} | |
| --rm \ | |
| {{- end}} | |
| {{- if .Runtime}} |
This file contains hidden or 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
| <# | |
| .SYNOPSIS | |
| The synopsis goes here. This can be one line, or many. | |
| This version of the template has inbuilt functions to capture credentials and store it securely for reuse | |
| Avoids the need to have plaintext passwords in the script | |
| .DESCRIPTION | |
| The description is usually a longer, more detailed explanation of what the script or function does. | |
| Take as many lines as you need. |