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

dev: update development instructions #40

Merged
merged 2 commits into from
Nov 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 19 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,30 @@ After the project pre-requisites have been installed, you can start the containe
TEDGE_C8Y_OPERATIONS_AUTO_LOG_UPLOAD=always
```

2. Init the device certificate (stored under `./device-cert) and upload it to Cumulocity IoT
2. Activate your Cumulocity session using go-c8y-cli

```sh
set-session
```

**Note**

Your go-c8y-cli session profile needs to have the following setting set (and you will have to run `set-session` again afterwards):

```sh
c8y settings update session.alwaysIncludePassword true

# Then re-activate the session
set-session
```

3. Init the device certificate (stored under `./device-cert) and upload it to Cumulocity IoT

```sh
just init
```

3. Start the container (using docker compose)
4. Start the container (using docker compose)

```sh
# using the justfile task
Expand Down
5 changes: 5 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ start *ARGS: build-local
stop *ARGS:
docker compose down {{ARGS}}

# Stop the compose project and delete any resources
stop-all *ARGS:
docker compose --profile init down -v {{ARGS}}
docker compose --profile service down -v {{ARGS}}

# Enabling running cross platform tools when building container images
build-setup:
docker run --privileged --rm tonistiigi/binfmt --install all
Expand Down