-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
39 lines (31 loc) · 1.36 KB
/
Dockerfile
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
FROM ubuntu:20.04
WORKDIR /app
ARG DEBIAN_FRONTEND=noninteractive
# APT packages
RUN apt update && apt install -y wget unzip python3 python3-pip git-lfs software-properties-common
RUN wget -O- https://apt.corretto.aws/corretto.key | apt-key add -
RUN add-apt-repository 'deb https://apt.corretto.aws stable main'
RUN apt update
RUN apt install -y java-17-amazon-corretto-jdk
# GCC ARM
RUN cd / && \
wget https://armkeil.blob.core.windows.net/developer/Files/downloads/gnu-rm/9-2019q4/RC2.1/gcc-arm-none-eabi-9-2019-q4-major-x86_64-linux.tar.bz2 -q && \
tar xjf gcc-arm-none-eabi-9-2019-q4-major-x86_64-linux.tar.bz2 && \
echo "PATH=$PATH:/gcc-arm-none-eabi-9-2019-q4-major/bin" >> ~/.bashrc
# Gecko SDK
RUN GECKO_COMMIT=db4e90767174d467158d4c5249ba5be6ab9d9e83 && \
cd / && \
wget https://github.com/edgeimpulse/gecko_sdk/archive/${GECKO_COMMIT}.zip -O gecko.zip -q && \
unzip -q gecko.zip && \
mv gecko_sdk-${GECKO_COMMIT}/ gecko_sdk/
# SLC-CLI tool
RUN cd / && \
wget https://cdn.edgeimpulse.com/build-system/slc_cli_linux.zip -q && \
unzip -q slc_cli_linux.zip && \
cd slc_cli && \
pip3 install --user -r requirements.txt && \
chmod +x slc
ENV PATH="/slc_cli:${PATH}"
RUN slc configuration --sdk /gecko_sdk/ && \
slc signature trust --sdk /gecko_sdk/ && \
slc configuration --gcc-toolchain /gcc-arm-none-eabi-9-2019-q4-major