Skip to content

Commit

Permalink
add the dummy modem.json file
Browse files Browse the repository at this point in the history
Signed-off-by: Reuben Miller <reuben.d.miller@gmail.com>
  • Loading branch information
reubenmiller committed Oct 4, 2024
1 parent c2c3f79 commit 0dbe38a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion images/child-device-container/child.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ RUN apk add --no-cache \
&& echo "tedge ALL = (ALL) NOPASSWD: /usr/bin/step-ca-admin.sh, /usr/bin/enroll.sh, /usr/sbin/update-ca-certificates" >> /etc/sudoers.d/step-ca \
# Allow tedge user to control this folder
&& mkdir -p /etc/step-ca \
&& chown -R tedge:tedge /etc/step-ca
&& chown -R tedge:tedge /etc/step-ca \
# Add dummy configuration files
&& echo '{"connectionType":"4G"}' > /etc/modem.json

USER tedge
COPY child-device-container/config/tedge-configuration-plugin.toml /etc/tedge/plugins/
Expand Down
4 changes: 3 additions & 1 deletion images/child-device-systemd/child.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ RUN echo "running" \
# Local PKI service for easy child device registration
tedge-pki-smallstep-client \
# Disable tedge-agent as it needs to be setup before it can start
&& systemctl disable tedge-agent
&& systemctl disable tedge-agent \
# Add dummy configuration files
&& echo '{"connectionType":"4G"}' > /etc/modem.json

COPY child-device-systemd/config/sshd_config /etc/ssh/sshd_config

Expand Down

0 comments on commit 0dbe38a

Please sign in to comment.