Skip to content

Commit d02bb90

Browse files
authored
Merge pull request #125 from thin-edge/feat-add-tedge-command-plugin-to-child-devices
feat: add tedge-command-plugin to child device images
2 parents 2383ea1 + d45ea3f commit d02bb90

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

images/child-device-container/child.dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ RUN apk add --no-cache \
88
&& curl -1sLf 'https://dl.cloudsmith.io/public/thinedge/community/config.alpine.txt?distro=alpine&codename=v3.8' >> /etc/apk/repositories \
99
&& apk add --no-cache \
1010
tedge-apk-plugin \
11+
tedge-command-plugin \
1112
tedge-inventory-plugin \
1213
tedge-pki-smallstep-client \
1314
&& 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 \

images/child-device-systemd/child.dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ RUN echo "running" \
3636
&& curl -1sLf 'https://dl.cloudsmith.io/public/thinedge/community/setup.deb.sh' | sudo -E bash \
3737
&& DEBIAN_FRONTEND=noninteractive apt-get -y install \
3838
tedge-agent \
39+
tedge-command-plugin \
3940
tedge-inventory-plugin \
4041
# Local PKI service for easy child device registration
4142
tedge-pki-smallstep-client \

tests/debian-systemd/children-container/operations.robot

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,8 @@ Install device profile
7272
Cumulocity.Managed Object Should Have Fragment Values c8y_Firmware.name\=iot-linux c8y_Firmware.version\=3.0.0
7373
Cumulocity.Device Should Have Installed Software {"name":"jq"}
7474
Cumulocity.Should Support Configurations container.env includes=${True}
75+
76+
Execute shell command
77+
${operation}= Cumulocity.Execute Shell Command ls -l /etc/tedge
78+
${operation}= Operation Should Be SUCCESSFUL ${operation}
79+
Should Not Be Empty ${operation["c8y_Command"]["result"]}

tests/debian-systemd/children-systemd/operations.robot

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,8 @@ Install device profile
7575
Cumulocity.Managed Object Should Have Fragment Values c8y_Firmware.name\=iot-linux c8y_Firmware.version\=3.0.0
7676
Cumulocity.Device Should Have Installed Software {"name":"jq"}
7777
Cumulocity.Should Support Configurations container.env includes=${True}
78+
79+
Execute shell command
80+
${operation}= Cumulocity.Execute Shell Command ls -l /etc/tedge
81+
${operation}= Operation Should Be SUCCESSFUL ${operation}
82+
Should Not Be Empty ${operation["c8y_Command"]["result"]}

0 commit comments

Comments
 (0)