From 7339a686843c7f02a28389b405ec770cfd9ae9c5 Mon Sep 17 00:00:00 2001 From: Jonathan Donald <91503381+j-noel-longhand@users.noreply.github.com> Date: Fri, 28 Jan 2022 06:04:04 +0000 Subject: [PATCH] [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 --- etc/docker/environment/Dockerfile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/etc/docker/environment/Dockerfile b/etc/docker/environment/Dockerfile index cc6c274c9..36c23e744 100644 --- a/etc/docker/environment/Dockerfile +++ b/etc/docker/environment/Dockerfile @@ -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