Files
openthread/etc/docker/environment/Dockerfile
Li Cao 318006e4da [format] standardize clang-format to 19.1.7 (#11797)
Since llvm-19, if we use package manager to install it, the minor
versions could be different. This commit standardizes the version on
linux to 19.1.7. This version is the same as the one installed by
homebrew.
2025-08-12 11:20:30 -07:00

50 lines
1.3 KiB
Docker

# Ubuntu image with tools required to build OpenThread
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
ENV LANG=en_US.UTF-8
ENV INSTALL_FORMAT_TOOLS=0
# Resolves issue with installing libc-bin
RUN rm /var/lib/dpkg/info/libc-bin.* \
&& apt-get clean -y \
&& apt-get update -y \
&& apt-get install --no-install-recommends -y libc-bin
RUN set -x \
&& apt-get update -y \
&& apt-get install -y locales \
&& localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 \
&& apt-get --no-install-recommends install -fy \
bzip2 \
git \
ninja-build \
python3 \
python3-pip \
python3-setuptools \
software-properties-common \
sudo \
netbase \
inetutils-ping \
ca-certificates \
&& update-ca-certificates \
&& python3 -m pip install -U pip \
&& python3 -m pip install -U cmake \
&& python3 -m pip install wheel
# set up openthread simulation cli example apps
WORKDIR /
COPY . openthread
RUN set -x \
&& cd openthread \
&& ./script/bootstrap \
&& mkdir build \
&& cd build \
&& cmake -GNinja -DOT_COMMISSIONER=ON -DOT_JOINER=ON -DOT_PLATFORM=simulation .. \
&& ninja
# set up ot-daemon
WORKDIR /
RUN set -x \
&& cd openthread \
&& ./script/cmake-build posix -DOT_DAEMON=ON