Skip to content

Commit

Permalink
allow sudo to call kill
Browse files Browse the repository at this point in the history
  • Loading branch information
reubenmiller committed Nov 21, 2024
1 parent 76bf477 commit c9db12f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,15 @@ RUN wget -O - https://thin-edge.io/install-services.sh | sh -s -- s6_overlay \
docker-cli-compose \
tedge-container-plugin-ng

# COPY output/*.apk /tmp/
# RUN apk add --allow-untrusted --force-overwrite /tmp/*.apk
# COPY run /etc/s6-overlay/s6-rc.d/tedge-container-plugin/run
# COPY finish /etc/s6-overlay/s6-rc.d/tedge-container-plugin/finish

# 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" >/etc/sudoers.d/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
# Custom init. scripts - e.g. write env variables data to files
COPY cont-init.d/* /etc/cont-init.d/

Expand Down

0 comments on commit c9db12f

Please sign in to comment.