forked from NabuCasa/silabs-firmware-builder
-
Notifications
You must be signed in to change notification settings - Fork 66
Expand file tree
/
Copy pathDockerfile
More file actions
81 lines (65 loc) · 2.38 KB
/
Dockerfile
File metadata and controls
81 lines (65 loc) · 2.38 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
FROM ubuntu:24.04
ARG DEBIAN_FRONTEND=noninteractive
RUN \
apt-get update \
&& apt-get install -y --no-install-recommends \
bzip2 \
curl \
git \
git-lfs \
jq \
yq \
libgl1 \
libglib2.0-0 \
locales \
make \
openjdk-21-jre-headless \
openssh-client \
patch \
python3 \
python3-ruamel.yaml \
unzip \
xz-utils
RUN \
locale-gen en_US.UTF-8 \
&& update-locale LANG=en_US.UTF-8
# Workaround for unicode characters in SDK zip
ENV LANG=en_US.UTF-8
ENV LC_ALL=en_US.UTF-8
# Install Simplicity Commander (unfortunately no stable URL available, this
# is known to be working with Commander_linux_x86_64_1v15p0b1306.tar.bz).
RUN \
curl -O https://www.silabs.com/documents/login/software/SimplicityCommander-Linux.zip \
&& unzip -q SimplicityCommander-Linux.zip \
&& tar -C /opt -xjf SimplicityCommander-Linux/Commander_linux_x86_64_*.tar.bz \
&& rm -r SimplicityCommander-Linux \
&& rm SimplicityCommander-Linux.zip
ENV PATH="$PATH:/opt/commander"
# Install Silicon Labs Configurator (slc)
RUN \
curl -O https://www.silabs.com/documents/login/software/slc_cli_linux.zip \
&& unzip -q -d /opt slc_cli_linux.zip \
&& rm slc_cli_linux.zip
ENV PATH="$PATH:/opt/slc_cli"
# GCC Embedded Toolchain 12.2.rel1 (for Gecko SDK 4.4.0+)
RUN \
curl -O https://armkeil.blob.core.windows.net/developer/Files/downloads/gnu/12.2.rel1/binrel/arm-gnu-toolchain-12.2.rel1-x86_64-arm-none-eabi.tar.xz \
&& tar -C /opt -xf arm-gnu-toolchain-12.2.rel1-x86_64-arm-none-eabi.tar.xz \
&& rm arm-gnu-toolchain-12.2.rel1-x86_64-arm-none-eabi.tar.xz
# Simplicity SDK 2024.6.3
RUN set -e \
&& curl -L -o simplicity_sdk_2024.6.3.zip https://github.com/SiliconLabs/simplicity_sdk/releases/download/v2024.6.3/simplicity-sdk.zip \
&& unzip -o -d simplicity_sdk_2024.6.3 simplicity_sdk_2024.6.3.zip || true \
&& rm simplicity_sdk_2024.6.3.zip \
&& chown ubuntu:ubuntu -R /simplicity_sdk_2024.6.3
# ZCL Advanced Platform (ZAP) v2024.09.27
RUN \
curl -o zap_2024.09.27.zip -L https://github.com/project-chip/zap/releases/download/v2024.09.27/zap-linux-x64.zip \
&& unzip -q -d /opt/zap zap_2024.09.27.zip \
&& rm zap_2024.09.27.zip
ENV STUDIO_ADAPTER_PACK_PATH="/opt/zap"
ARG USERNAME=ubuntu
ARG USER_UID=1000
ARG USER_GID=$USER_UID
USER $USERNAME
WORKDIR /build