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

feat: add tedge-command-plugin to child device images #125

Merged
merged 2 commits into from
Dec 17, 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
1 change: 1 addition & 0 deletions images/child-device-container/child.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ RUN apk add --no-cache \
&& curl -1sLf 'https://dl.cloudsmith.io/public/thinedge/community/config.alpine.txt?distro=alpine&codename=v3.8' >> /etc/apk/repositories \
&& apk add --no-cache \
tedge-apk-plugin \
tedge-command-plugin \
tedge-inventory-plugin \
tedge-pki-smallstep-client \
&& echo "tedge ALL = (ALL) NOPASSWD: /usr/bin/tedge, /usr/bin/tedge-write /etc/*, /etc/tedge/sm-plugins/[a-zA-Z0-9]*, /bin/sync, /bin/kill" > /etc/sudoers.d/tedge \
Expand Down
1 change: 1 addition & 0 deletions images/child-device-systemd/child.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ RUN echo "running" \
&& curl -1sLf 'https://dl.cloudsmith.io/public/thinedge/community/setup.deb.sh' | sudo -E bash \
&& DEBIAN_FRONTEND=noninteractive apt-get -y install \
tedge-agent \
tedge-command-plugin \
tedge-inventory-plugin \
# Local PKI service for easy child device registration
tedge-pki-smallstep-client \
Expand Down
5 changes: 5 additions & 0 deletions tests/debian-systemd/children-container/operations.robot
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,8 @@ Install device profile
Cumulocity.Managed Object Should Have Fragment Values c8y_Firmware.name\=iot-linux c8y_Firmware.version\=3.0.0
Cumulocity.Device Should Have Installed Software {"name":"jq"}
Cumulocity.Should Support Configurations container.env includes=${True}

Execute shell command
${operation}= Cumulocity.Execute Shell Command ls -l /etc/tedge
${operation}= Operation Should Be SUCCESSFUL ${operation}
Should Not Be Empty ${operation["c8y_Command"]["result"]}
5 changes: 5 additions & 0 deletions tests/debian-systemd/children-systemd/operations.robot
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,8 @@ Install device profile
Cumulocity.Managed Object Should Have Fragment Values c8y_Firmware.name\=iot-linux c8y_Firmware.version\=3.0.0
Cumulocity.Device Should Have Installed Software {"name":"jq"}
Cumulocity.Should Support Configurations container.env includes=${True}

Execute shell command
${operation}= Cumulocity.Execute Shell Command ls -l /etc/tedge
${operation}= Operation Should Be SUCCESSFUL ${operation}
Should Not Be Empty ${operation["c8y_Command"]["result"]}