Skip to content

Commit

Permalink
Merge pull request #74 from thin-edge/chore-migrate-connector-example
Browse files Browse the repository at this point in the history
refactor: migrate to python-tedge-agent for child agent
  • Loading branch information
reubenmiller authored Jan 8, 2024
2 parents 28f1982 + 8c920e7 commit 208a475
Show file tree
Hide file tree
Showing 15 changed files with 7 additions and 954 deletions.
11 changes: 5 additions & 6 deletions images/child-device/child.dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
FROM python:3.10
WORKDIR /usr/src/app
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
FROM ghcr.io/thin-edge/python-tedge-agent:0.0.1

ENV CONNECTOR_TEDGE_HOST=tedge
ENV CONNECTOR_TEDGE_API=http://tedge:8000

COPY . .
CMD [ "python", "-m", "connector" ]
COPY config/* /data/config/
COPY tedge-configuration-plugin.json /data/config/
# Change working directory so the tedge-configuration-plugin file is read by default
WORKDIR /data/config
Empty file.
5 changes: 0 additions & 5 deletions images/child-device/connector/__main__.py

This file was deleted.

62 changes: 0 additions & 62 deletions images/child-device/connector/app.py

This file was deleted.

210 changes: 0 additions & 210 deletions images/child-device/connector/client.py

This file was deleted.

92 changes: 0 additions & 92 deletions images/child-device/connector/config.py

This file was deleted.

Empty file.
Loading

8 comments on commit 208a475

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Robot Results

✅ Passed ❌ Failed ⏭️ Skipped Total Pass % ⏱️ Duration
14 0 0 14 100 55.686s

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Robot Results

✅ Passed ❌ Failed ⏭️ Skipped Total Pass % ⏱️ Duration
7 0 0 7 100 50.247s

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Robot Results

✅ Passed ❌ Failed ⏭️ Skipped Total Pass % ⏱️ Duration
11 0 2 11 100 54.151999999s

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Robot Results

✅ Passed ❌ Failed ⏭️ Skipped Total Pass % ⏱️ Duration
15 0 0 15 100 2m39.67s

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Robot Results

✅ Passed ❌ Failed ⏭️ Skipped Total Pass % ⏱️ Duration
14 0 0 14 100 56.46s

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Robot Results

✅ Passed ❌ Failed ⏭️ Skipped Total Pass % ⏱️ Duration
7 0 0 7 100 44.863999999s

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Robot Results

✅ Passed ❌ Failed ⏭️ Skipped Total Pass % ⏱️ Duration
11 0 2 11 100 51.237s

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Robot Results

✅ Passed ❌ Failed ⏭️ Skipped Total Pass % ⏱️ Duration
15 0 0 15 100 2m33.237s

Please sign in to comment.