[docker] modified environment Dockerfile to support Docker OT simulation (#7368)

* added inetutils-ping (provides ping6)

* modified Dockerfile to add binaries required by Docker OT simulation codelab
This commit is contained in:
Jonathan Donald
2022-01-27 22:04:04 -08:00
committed by GitHub
parent 876aa82164
commit 7339a68684
+9 -2
View File
@@ -16,10 +16,14 @@ RUN set -x \
python3-setuptools \
software-properties-common \
sudo \
netbase \
inetutils-ping \
ca-certificates \
&& update-ca-certificates \
&& python3 -m pip install -U cmake \
&& python3 -m pip install wheel
# setup openthread
# set up openthread simulation cli example apps
WORKDIR /
COPY . openthread
RUN set -x \
@@ -27,5 +31,8 @@ RUN set -x \
&& ./script/bootstrap \
&& mkdir build \
&& cd build \
&& cmake -GNinja -DOT_PLATFORM=simulation .. \
&& cmake -GNinja -DOT_COMMISSIONER=ON -DOT_JOINER=ON -DOT_PLATFORM=simulation .. \
&& ninja
# set up ot-daemon
RUN set -x ./script/cmake-build posix -DOT_DAEMON=ON