-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
53 lines (43 loc) · 1.31 KB
/
Dockerfile
File metadata and controls
53 lines (43 loc) · 1.31 KB
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
51
52
53
FROM ubuntu:18.04
ARG LEAF_PACKAGE
# Make sure package info is up to date
RUN apt-get update && \
apt-get upgrade -y && \
rm -rf /var/lib/apt/lists/*
RUN apt-get update && \
apt-get install -y curl && \
rm -rf /var/lib/apt/lists/*
# Get leaf
RUN curl -o /tmp/leaf_latest.deb https://downloads.sierrawireless.com/tools/leaf/leaf_latest.deb && \
apt-get update && \
apt install -y /tmp/leaf_latest.deb && \
rm -rf /var/lib/apt/lists/*
RUN apt-get update && apt-get install -y \
autoconf \
automake \
bison \
build-essential \
cmake \
flex \
gperf \
libncurses5-dev \
libtool \
ninja-build \
pkg-config \
python-jinja2 \
swicwe \
swiflash \
zip && \
rm -rf /var/lib/apt/lists/*
RUN leaf remote add \
--insecure \
mangOH \
https://downloads.sierrawireless.com/mangOH/leaf/mangOH-yellow.json
WORKDIR /leaf_workspace
RUN yes | leaf setup -p $LEAF_PACKAGE && \
rm ~/.cache/leaf/files/*
RUN curl -o /tmp/bsec.zip \
https://community.bosch-sensortec.com/varuj77995/attachments/varuj77995/bst_community-mems-forum/44/1/BSEC_1.4.7.2_GCC_CortexA7_20190225.zip && \
unzip /tmp/bsec.zip && \
rm /tmp/bsec.zip
RUN leaf env workspace --set BSEC_DIR=`pwd`/BSEC_1.4.7.2_GCC_CortexA7_20190225/algo/bin/Normal_version/Cortex_A7