mirror of
https://github.com/ysoftdevs/ubuntu-bionic-systemd-iotedge.git
synced 2026-01-14 07:33:27 +01:00
15 lines
688 B
Docker
15 lines
688 B
Docker
FROM registry.nestybox.com/nestybox/ubuntu-bionic-systemd-docker
|
|
|
|
RUN curl https://packages.microsoft.com/config/ubuntu/18.04/multiarch/prod.list > ./microsoft-prod.list &&\
|
|
cp ./microsoft-prod.list /etc/apt/sources.list.d/ &&\
|
|
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg &&\
|
|
cp ./microsoft.gpg /etc/apt/trusted.gpg.d/ &&\
|
|
apt-get update &&\
|
|
apt-get install -y moby-engine nano aziot-edge &&\
|
|
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}/
|
|
# connect CM to /etc/aziot/config.toml
|
|
# iotedge config apply
|