Skip to content

Update iotedge runtime to 1.1.1 1 #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,19 @@ RUN AZ_REPO=$(lsb_release -cs) && \
tee /etc/apt/sources.list.d/azure-cli.list && \
curl -L https://packages.microsoft.com/keys/microsoft.asc | apt-key add -

RUN curl https://packages.microsoft.com/config/ubuntu/18.04/prod.list > ./microsoft-prod.list && \
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/
cp ./microsoft.gpg /etc/apt/trusted.gpg.d/

RUN apt-get update && apt-get install -y --no-install-recommends \
azure-cli \
moby-cli \
moby-engine && \
apt-get install -y --no-install-recommends iotedge=1.0.0-1 && \
moby-engine && \
apt-get install -y --no-install-recommends iotedge=1.1.1-1 && \
rm -rf /var/lib/apt/lists/*
RUN az extension add --name azure-cli-iot-ext

RUN az extension add --name azure-iot

COPY edge-provision.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/edge-provision.sh
Expand Down
6 changes: 3 additions & 3 deletions edge-provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ agent:
type: "docker"
env: {}
config:
image: "mcr.microsoft.com/azureiotedge-agent:1.0"
image: "mcr.microsoft.com/azureiotedge-agent:1.1"
auth: {}
hostname: $(cat /proc/sys/kernel/hostname)
connect:
Expand All @@ -43,7 +43,7 @@ EOF

cat /etc/iotedge/config.yaml

iotedged -c /etc/iotedge/config.yaml
iotedged -c /etc/iotedge/config.yaml

}

Expand All @@ -64,5 +64,5 @@ done
if [ -z "$connectionString" ]; then
echo "No connectionString provided, provisioning as a brand new IoTEdge device with name: $(hostname)"
provision
fi
fi
startEdgeRuntime