Skip to content

Commit ab41315

Browse files
committed
add notes for bootstrapping the main device with the c8y-tedge go-c8y-cli extension
1 parent 8ff0977 commit ab41315

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,12 @@ Once you have [just](https://github.com/casey/just) installed, you can proceed w
8181
8282
You will be prompted for the required details. You can hit `<enter>` to accept the default values. The default values are provided via the `.env` file from the first step.
8383
84+
Alternatively, if you're a [go-c8y-cli](https://goc8ycli.netlify.app/) user, and have the [c8y-tedge](https://github.com/thin-edge/c8y-tedge) extension installed, then you can bootstrap the device using:
85+
86+
```sh
87+
just bootstrap-c8y
88+
```
89+
8490
4. Click on the device link shown on your console
8591

8692
5. That's it 🚀

justfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,16 @@ down-all:
8585
bootstrap *ARGS:
8686
@docker compose --env-file {{DEV_ENV}} -f images/{{IMAGE}}/docker-compose.yaml exec tedge env C8Y_USER=${C8Y_USER:-} C8Y_PASSWORD=${C8Y_PASSWORD:-} DEVICE_ID=${DEVICE_ID:-} bootstrap.sh {{ARGS}}
8787

88+
# Configure and register the device to the cloud using go-c8y- c8y-tedge extension
89+
bootstrap-c8y *ARGS:
90+
cd "images/{{IMAGE}}" && c8y tedge bootstrap-container tedge {{ARGS}}
91+
8892
# Bootstrap container using the go-c8y-cli c8y-tedge extension
8993
bootstrap-container *ARGS="":
9094
cd "images/{{IMAGE}}" && c8y tedge bootstrap-container bootstrap {{ARGS}}
9195

9296
# Start a shell on the main device
93-
shell *args='bash':
97+
shell *args='zsh':
9498
docker compose -f images/{{IMAGE}}/docker-compose.yaml exec tedge {{args}}
9599

96100
# Start a shell on the child device

0 commit comments

Comments
 (0)