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

Add a subsection on how to use a custom device-worker image #111

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
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
22 changes: 20 additions & 2 deletions _posts/2022-07-20-developer-cli.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ layout: post
title: "Flotta Developer CLI"
date: 2022-07-20 12:00:00 +1000
categories: flotta
author: Ariel Ireni, Moti Asayag
author: Ariel Ireni, Moti Asayag, Gloria Ciavarrini
tags:
- guide
- flotta
Expand Down Expand Up @@ -214,4 +214,22 @@ And view podman logs to find for issues to run the workload:
[flotta@366d67a90f10 ~]$ journalctl --user -u podman
```

If you find an issue with _flotta-dev-cli_, please report it to the [Github issue tracker](https://github.com/project-flotta/flotta-dev-cli/issues).
If you find an issue with _flotta-dev-cli_, please report it to the [Github issue tracker](https://github.com/project-flotta/flotta-dev-cli/issues).

### Use your own flotta-worker-device image
If you need to use a different `flotta-worker-device` image than the official one (e.g. to test changes you made to the device-worker before sending a PR) then you must:

1. Create your custom `flotta-worker-device` image\
In the `flotta-device-worker` project folder execute:
```shell
IMG=quay.io/<YOUR_USERNAME>/flotta-device-worker:latest make deploy-container-image
```
This command creates the image and push it on your repository.
Make sure this repository is public.

1. Set the environment variable `DEVICE_IMAGE`\
When running the `flotta` command set the environment variable `DEVICE_IMAGE` to use your previously created image:

```shell
DEVICE_IMAGE=quay.io/<YOUR_USERNAME>/flotta-device-worker:latest flotta add device --name edge1
```