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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
NATAF Emmanuel
contiki-ng
Commits
b4684e3d
Commit
b4684e3d
authored
6 years ago
by
George Oikonomou
Browse files
Options
Downloads
Patches
Plain Diff
Single docker RUN for all apt- and npm work.
Quiet npm and run all of the above without sudo
parent
06ad0f26
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/docker/Dockerfile
+14
-19
14 additions, 19 deletions
tools/docker/Dockerfile
with
14 additions
and
19 deletions
tools/docker/Dockerfile
+
14
−
19
View file @
b4684e3d
...
...
@@ -3,12 +3,20 @@ FROM 32bit/ubuntu:16.04
ENV
DEBIAN_FRONTEND noninteractive
# Tools
RUN
apt-get update
&&
\
apt-get
install
-y
--no-install-recommends
\
build-essential doxygen git wget unzip python-serial python-pip
\
default-jdk ant srecord iputils-tracepath rlwrap
\
mosquitto mosquitto-clients gdb
\
&&
apt-get clean
RUN
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
&&
\
apt-get
-qq
update
&&
\
apt-get
-qq
-y
--no-install-recommends
install
\
build-essential doxygen git wget unzip python-serial python-pip
\
default-jdk ant srecord iputils-tracepath rlwrap
\
mosquitto mosquitto-clients gdb npm
\
mono-complete gksu libgtk2.0-0 screen uml-utilities gtk-sharp2
\
libcanberra-gtk-module:i386
\
&&
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
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
&&
\
...
...
@@ -75,19 +83,6 @@ WORKDIR ${HOME}
RUN
echo
"#!/bin/bash
\n
ant -Dbasedir=
${
COOJA
}
-f
${
COOJA
}
/build.xml run"
>
${
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
RUN
git clone
--quiet
https://github.com/renode/renode.git
\
&&
cd
${
HOME
}
/renode
\
...
...
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
register
or
sign in
to comment