From 5f5e47af2418626e58e89b18073dce9d87afba31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20Vitou=C5=A1?= Date: Tue, 31 Aug 2021 09:51:29 +0200 Subject: [PATCH] hopeless insertion of systemd unit file for aziot --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 636897b..696214c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,6 +9,10 @@ RUN curl https://packages.microsoft.com/config/ubuntu/18.04/multiarch/prod.list #mkdir -p /etc/aziot/config &&\ #touch /etc/aziot/config/config.toml &&\ ln -s /etc/aziot/config/config.toml /etc/aziot/config.toml &&\ - rm -rf /var/lib/{apt,dpkg,cache,log}/ + rm -rf /var/lib/{apt,dpkg,cache,log}/ &&\ + printf '[Unit] \nDescription=FOO BAR \n \n[Service] \nType=oneshot \nExecStart=/usr/bin/iotedge config apply \n \n[Install] \nWantedBy=aziot-edged.service' \ + >> /etc/systemd/system/aziot-init.service &&\ + systemctl daemon-reload && systemctl enable aziot-init.service + # connect CM to /etc/aziot/config.toml # iotedge config apply