Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
contiki-ng
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
NATAF Emmanuel
contiki-ng
Commits
6f50961c
Unverified
Commit
6f50961c
authored
Oct 23, 2018
by
Simon Duquennoy
Committed by
GitHub
Oct 23, 2018
Browse files
Options
Downloads
Plain Diff
Merge branch 'release-4.2' into contrib/tests/out-of-tree
parents
a2c9f75e
9280046c
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/docker/Dockerfile
+45
-30
45 additions, 30 deletions
tools/docker/Dockerfile
with
45 additions
and
30 deletions
tools/docker/Dockerfile
+
45
−
30
View file @
6f50961c
FROM
32bit/ubuntu:16.04
FROM
32bit/ubuntu:16.04
ENV
DEBIAN_FRONTEND noninteractive
# Tools
# Tools
RUN
apt-get update
&&
\
RUN
apt-key adv
--keyserver
hkp://keyserver.ubuntu.com:80
--recv-keys
3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
&&
\
apt-get
install
-y
--no-install-recommends
\
echo
"deb http://download.mono-project.com/repo/ubuntu xenial main"
|
sudo tee
/etc/apt/sources.list.d/mono-xamarin.list
&&
\
build-essential doxygen git wget unzip python-serial python-pip
\
apt-get
-qq
update
&&
\
default-jdk ant srecord iputils-tracepath rlwrap
\
apt-get
-qq
-y
--no-install-recommends
install
\
mosquitto mosquitto-clients gdb
\
ant
\
&&
apt-get clean
build-essential
\
default-jdk
\
doxygen
\
gdb
\
git
\
gksu
\
gtk-sharp2
\
iputils-tracepath
\
libcanberra-gtk-module:i386
\
libgtk2.0-0
\
mono-complete
\
mosquitto
\
mosquitto-clients
\
npm
\
python-pip
\
python-serial
\
rlwrap
\
screen
\
srecord
\
uml-utilities
\
unzip
\
wget
\
>
/dev/null
\
&&
apt-get
-qq
clean
# Install coap-cli
RUN
npm
-q
install
coap-cli
-g
\
&&
sudo ln
-s
/usr/bin/nodejs /usr/bin/node
# Install ARM toolchain
# Install ARM toolchain
RUN
wget https://launchpad.net/gcc-arm-embedded/5.0/5-2015-q4-major/+download/gcc-arm-none-eabi-5_2-2015q4-20151219-linux.tar.bz2
&&
\
RUN
wget
-nv
https://launchpad.net/gcc-arm-embedded/5.0/5-2015-q4-major/+download/gcc-arm-none-eabi-5_2-2015q4-20151219-linux.tar.bz2
&&
\
tar
xjf gcc-arm-none-eabi-5_2-2015q4-20151219-linux.tar.bz2
-C
/tmp/
&&
\
tar
xjf gcc-arm-none-eabi-5_2-2015q4-20151219-linux.tar.bz2
-C
/tmp/
&&
\
cp
-f
-r
/tmp/gcc-arm-none-eabi-5_2-2015q4/
*
/usr/local/
&&
\
cp
-f
-r
/tmp/gcc-arm-none-eabi-5_2-2015q4/
*
/usr/local/
&&
\
rm
-rf
/tmp/gcc-arm-none-eabi-
*
gcc-arm-none-eabi-
*
-linux
.tar.bz2
rm
-rf
/tmp/gcc-arm-none-eabi-
*
gcc-arm-none-eabi-
*
-linux
.tar.bz2
# Install msp430 toolchain
# Install msp430 toolchain
RUN
wget http://simonduq.github.io/resources/mspgcc-4.7.2-compiled.tar.bz2
&&
\
RUN
wget
-nv
http://simonduq.github.io/resources/mspgcc-4.7.2-compiled.tar.bz2
&&
\
tar
xjf mspgcc
*
.tar.bz2
-C
/tmp/
&&
\
tar
xjf mspgcc
*
.tar.bz2
-C
/tmp/
&&
\
cp
-f
-r
/tmp/msp430/
*
/usr/local/
&&
\
cp
-f
-r
/tmp/msp430/
*
/usr/local/
&&
\
rm
-rf
/tmp/msp430 mspgcc
*
.tar.bz2
rm
-rf
/tmp/msp430 mspgcc
*
.tar.bz2
# Install NXP toolchain (partial, with binaries excluded. Download from nxp.com)
# Install NXP toolchain (partial, with binaries excluded. Download from nxp.com)
RUN
wget http://simonduq.github.io/resources/ba-elf-gcc-4.7.4-part1.tar.bz2
&&
\
RUN
wget
-nv
http://simonduq.github.io/resources/ba-elf-gcc-4.7.4-part1.tar.bz2
&&
\
wget http://simonduq.github.io/resources/ba-elf-gcc-4.7.4-part2.tar.bz2
&&
\
wget
-nv
http://simonduq.github.io/resources/ba-elf-gcc-4.7.4-part2.tar.bz2
&&
\
wget http://simonduq.github.io/resources/jn516x-sdk-4163-1416.tar.bz2
&&
\
wget
-nv
http://simonduq.github.io/resources/jn516x-sdk-4163-1416.tar.bz2
&&
\
mkdir
/tmp/jn516x-sdk /tmp/ba-elf-gcc
&&
\
mkdir
/tmp/jn516x-sdk /tmp/ba-elf-gcc
&&
\
tar
xjf jn516x-sdk-
*
.tar.bz2
-C
/tmp/jn516x-sdk
&&
\
tar
xjf jn516x-sdk-
*
.tar.bz2
-C
/tmp/jn516x-sdk
&&
\
tar
xjf ba-elf-gcc-
*
part1.tar.bz2
-C
/tmp/ba-elf-gcc
&&
\
tar
xjf ba-elf-gcc-
*
part1.tar.bz2
-C
/tmp/ba-elf-gcc
&&
\
...
@@ -35,18 +64,17 @@ RUN wget http://simonduq.github.io/resources/ba-elf-gcc-4.7.4-part1.tar.bz2 && \
...
@@ -35,18 +64,17 @@ RUN wget http://simonduq.github.io/resources/ba-elf-gcc-4.7.4-part1.tar.bz2 && \
ENV
PATH="/usr/ba-elf-gcc/bin:${PATH}"
ENV
PATH="/usr/ba-elf-gcc/bin:${PATH}"
## Install nRF52 SDK
## Install nRF52 SDK
RUN
wget https://developer.nordicsemi.com/nRF5_IoT_SDK/nRF5_IoT_SDK_v0.9.x/nrf5_iot_sdk_3288530.zip
&&
\
RUN
wget
-nv
https://developer.nordicsemi.com/nRF5_IoT_SDK/nRF5_IoT_SDK_v0.9.x/nrf5_iot_sdk_3288530.zip
&&
\
mkdir
/usr/nrf52-sdk
&&
\
mkdir
/usr/nrf52-sdk
&&
\
unzip nrf5_iot_sdk_3288530.zip
-d
/usr/nrf52-sdk
&&
\
unzip
-q
nrf5_iot_sdk_3288530.zip
-d
/usr/nrf52-sdk
&&
\
rm
nrf5_iot_sdk_3288530.zip
rm
nrf5_iot_sdk_3288530.zip
ENV
NRF52_SDK_ROOT /usr/nrf52-sdk
ENV
NRF52_SDK_ROOT /usr/nrf52-sdk
# Install sphinx and sphinx_rtd_theme, required for building and testing the
# Install sphinx and sphinx_rtd_theme, required for building and testing the
# readthedocs API documentation
# readthedocs API documentation
RUN
pip
install
--upgrade
pip
RUN
pip
-q
install
--upgrade
pip
RUN
pip
install
setuptools
RUN
pip
-q
install
setuptools
&&
pip
-q
install
sphinx_rtd_theme sphinx
RUN
pip
install
sphinx_rtd_theme sphinx
# Create user, enable X forwarding, add to group dialout
# Create user, enable X forwarding, add to group dialout
# -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix
# -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix
...
@@ -74,21 +102,8 @@ WORKDIR ${HOME}
...
@@ -74,21 +102,8 @@ WORKDIR ${HOME}
RUN
echo
"#!/bin/bash
\n
ant -Dbasedir=
${
COOJA
}
-f
${
COOJA
}
/build.xml run"
>
${
HOME
}
/cooja
&&
\
RUN
echo
"#!/bin/bash
\n
ant -Dbasedir=
${
COOJA
}
-f
${
COOJA
}
/build.xml run"
>
${
HOME
}
/cooja
&&
\
chmod
+x
${
HOME
}
/cooja
chmod
+x
${
HOME
}
/cooja
# Install coap-cli
RUN
sudo
apt-get
install
-y
npm
\
&&
sudo
apt-get clean
\
&&
sudo
npm
install
coap-cli
-g
\
&&
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
# Download, build and install Renode
RUN
git clone https://github.com/renode/renode.git
\
RUN
git clone
--quiet
https://github.com/renode/renode.git
\
&&
cd
${
HOME
}
/renode
\
&&
cd
${
HOME
}
/renode
\
&&
git checkout v1.3
\
&&
git checkout v1.3
\
&&
./build.sh
&&
./build.sh
...
...
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment