forked from toolboc/azure-iot-edge-device-container
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.arm32
50 lines (39 loc) · 1.6 KB
/
Dockerfile.arm32
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
FROM arm32v7/ubuntu:18.04
RUN apt-get update -qq && apt-get install -qqy \
apt-transport-https \
ca-certificates \
curl \
wget \
gnupg \
lsb-release \
jq \
net-tools \
iproute2 \
systemd \
build-essential \
python \
python-dev \
libffi-dev \
libssl1.0.0 \
libssl-dev \
iptables && \
rm -rf /var/lib/apt/lists/*
RUN wget https://azurecliprod.blob.core.windows.net/install.py -O azure-cli-install.py && \
chmod +x azure-cli-install.py && \
yes "" | ./azure-cli-install.py
RUN cp /root/bin/az /usr/local/bin && \
az extension add --name azure-cli-iot-ext
RUN curl -L https://aka.ms/moby-engine-armhf-latest -o moby_engine.deb && dpkg -i ./moby_engine.deb && rm ./moby_engine.deb && \
curl -L https://aka.ms/moby-cli-armhf-latest -o moby_cli.deb && dpkg -i ./moby_cli.deb && rm ./moby_cli.deb
RUN curl -L https://github.com/Azure/azure-iotedge/releases/download/1.0.0/libiothsm-std_1.0.0-1_armhf.deb -o libiothsm-std.deb && dpkg -i ./libiothsm-std.deb && rm ./libiothsm-std.deb && \
curl -L https://github.com/Azure/azure-iotedge/releases/download/1.0.0/iotedge_1.0.0-1_armhf.deb -o iotedge.deb && dpkg -i ./iotedge.deb && rm ./iotedge.deb
COPY edge-provision.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/edge-provision.sh
VOLUME /var/lib/docker
EXPOSE 2375
EXPOSE 15580
EXPOSE 15581
RUN ln -s /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.0.0 /lib/arm-linux-gnueabihf/libcrypto.so.1.0.2 && \
ln -s /usr/lib/arm-linux-gnueabihf/libssl.so.1.0.0 /lib/arm-linux-gnueabihf/libssl.so.1.0.2
ENTRYPOINT ["bash", "edge-provision.sh"]
CMD []