Merge pull request #478 from simonduq/contrib/docker-renode
Add Renode to Dockerfile
This commit is contained in:
commit
e8286f46c9
@ -74,6 +74,20 @@ RUN sudo apt-get install -y npm \
|
|||||||
&& sudo npm install coap-cli -g \
|
&& sudo npm install coap-cli -g \
|
||||||
&& sudo ln -s /usr/bin/nodejs /usr/bin/node
|
&& sudo ln -s /usr/bin/nodejs /usr/bin/node
|
||||||
|
|
||||||
|
# Install Mono and libcanberra-gtk:i386 (for Renode)
|
||||||
|
RUN sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF \
|
||||||
|
&& echo "deb http://download.mono-project.com/repo/ubuntu xenial main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list \
|
||||||
|
&& sudo apt-get update \
|
||||||
|
&& sudo apt-get install -y mono-complete gksu libgtk2.0-0 screen uml-utilities gtk-sharp2 libcanberra-gtk-module:i386 \
|
||||||
|
&& sudo apt-get clean
|
||||||
|
|
||||||
|
# Download, build and install Renode
|
||||||
|
RUN git clone https://github.com/renode/renode.git \
|
||||||
|
&& cd ${HOME}/renode \
|
||||||
|
&& git checkout v1.3 \
|
||||||
|
&& ./build.sh
|
||||||
|
ENV PATH="${HOME}/renode:${PATH}"
|
||||||
|
|
||||||
# Optional: download Contiki-NG and pre-compile Cooja.
|
# Optional: download Contiki-NG and pre-compile Cooja.
|
||||||
# Else, use a Docker bind mount to share the repo with the host.
|
# Else, use a Docker bind mount to share the repo with the host.
|
||||||
# Docker run option:
|
# Docker run option:
|
||||||
@ -84,8 +98,8 @@ RUN ant -q -f ${CONTIKI_NG}/tools/cooja/build.xml jar
|
|||||||
# Working directory
|
# Working directory
|
||||||
WORKDIR ${CONTIKI_NG}
|
WORKDIR ${CONTIKI_NG}
|
||||||
|
|
||||||
# Enable IPv6 -- must be done at runtime, not in Dockerfile
|
# Enable IPv6 -- must be done at runtime, hence added to .profile
|
||||||
RUN echo "sudo sysctl -w net.ipv6.conf.all.disable_ipv6=0 > /dev/null" >> /home/user/.profile
|
RUN echo "sudo sysctl -w net.ipv6.conf.all.disable_ipv6=0 > /dev/null" >> ${HOME}/.profile
|
||||||
|
|
||||||
# Start a bash
|
# Start a bash
|
||||||
CMD bash --login
|
CMD bash --login
|
||||||
|
Loading…
Reference in New Issue
Block a user