Skip to content

Commit

Permalink
Merge pull request #46 from thin-edge/feat-support-s6-overlay-trap
Browse files Browse the repository at this point in the history
fix: support tedge-container-plugin service running as sudo
  • Loading branch information
reubenmiller authored Nov 22, 2024
2 parents 4e2a310 + 5a71429 commit 6cd16b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ RUN wget -O - https://thin-edge.io/install-services.sh | sh -s -- s6_overlay \
# Set permissions of all files under /etc/tedge
# TODO: Can thin-edge.io set permissions during installation?
RUN chown -R tedge:tedge /etc/tedge \
&& echo "tedge ALL = (ALL) NOPASSWD: /usr/bin/tedge, /etc/tedge/sm-plugins/[a-zA-Z0-9]*, /bin/sync, /sbin/init, /usr/bin/tedgectl, /usr/bin/docker, /usr/bin/tedge-container, /bin/kill" >/etc/sudoers.d/tedge
&& echo "tedge ALL = (ALL) NOPASSWD:SETENV: /usr/bin/tedge, /etc/tedge/sm-plugins/[a-zA-Z0-9]*, /bin/sync, /sbin/init, /usr/bin/tedgectl, /usr/bin/docker, /usr/bin/tedge-container, /bin/kill" >/etc/sudoers.d/tedge
# Custom init. scripts - e.g. write env variables data to files
COPY cont-init.d/* /etc/cont-init.d/

Expand Down

1 comment on commit 6cd16b4

@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
13 0 1 13 100 1m21.202942s

Passed Tests

Name ⏱️ Duration Suite
Grace period to allow container to startup 5.002 s Operations
tedge-container-plugin service is up 0.124 s Operations
Get Logfile Request 2.359 s Operations
Get Configuration File 4.678 s Operations
Execute Shell Command 2.347 s Operations
Install application using docker compose 19.593 s Operations
Get Container Logs 2.377 s Operations
Trigger self update via local command 11.474 s Self-Update
Self update should only update if there is a new image 4.446 s Self-Update
Self update using software update operation 26.004 s Self-Update
Cloud Connection is Online 0.119 s Telemetry
Service status 0.221 s Telemetry
Sends measurements 2.457 s Telemetry

Please sign in to comment.