[docker] build ot-daemon/ot-ctl in codelab_otsim (#5115)

Also remove wpantund from codelab_otsim.
This commit is contained in:
Jeff Bumgardner
2020-06-23 13:38:25 -07:00
committed by GitHub
parent b17327456c
commit 4975681a97
+10 -25
View File
@@ -6,34 +6,19 @@ ENV DEBIAN_FRONTEND noninteractive
# Install dependencies:
RUN apt-get update -qq
# Install packages needed for wpantund build and runtime:
RUN apt-get --no-install-recommends install -y build-essential git make autoconf \
autoconf-archive automake dbus libtool gcc \
g++ gperf flex bison texinfo ncurses-dev \
libexpat-dev python sed python-pip gawk \
libreadline6-dev libdbus-1-dev \
libboost-dev inetutils-ping
RUN apt-get --no-install-recommends install -y --force-yes gcc-arm-none-eabi
RUN pip install pexpect
# Install wpantund:
RUN mkdir -p ~/src && \
cd ~/src && \
git clone --recursive https://github.com/openthread/wpantund.git && \
cd wpantund && \
git checkout full/master && \
./configure --sysconfdir=/etc && \
make && make install
RUN mkdir -p /dev/net && mknod /dev/net/tun c 10 200 && chmod 600 /dev/net/tun
# Restart dbus
RUN service dbus restart
# Install packages needed for build and runtime:
RUN apt-get --no-install-recommends install -y git sudo software-properties-common \
ca-certificates \
&& update-ca-certificates
# Install OpenThread
RUN cd ~/src && \
RUN mkdir -p ~/src && \
cd ~/src && \
git clone --recursive https://github.com/openthread/openthread.git && \
cd openthread && \
./script/bootstrap && \
./bootstrap && \
make -f examples/Makefile-simulation
# Install OpenThread Daemon and ot-ctl
RUN cd ~/src/openthread && make -f src/posix/Makefile-posix DAEMON=1