From 0dbe38ab704686fc77d2f89dedfb7b9983a1ef55 Mon Sep 17 00:00:00 2001 From: Reuben Miller Date: Fri, 4 Oct 2024 17:46:10 +0200 Subject: [PATCH] add the dummy modem.json file Signed-off-by: Reuben Miller --- images/child-device-container/child.dockerfile | 4 +++- images/child-device-systemd/child.dockerfile | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/images/child-device-container/child.dockerfile b/images/child-device-container/child.dockerfile index 0d2cd41..e7ab74b 100644 --- a/images/child-device-container/child.dockerfile +++ b/images/child-device-container/child.dockerfile @@ -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/ diff --git a/images/child-device-systemd/child.dockerfile b/images/child-device-systemd/child.dockerfile index 0a8b675..a42190b 100644 --- a/images/child-device-systemd/child.dockerfile +++ b/images/child-device-systemd/child.dockerfile @@ -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