-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
72 lines (62 loc) · 1.08 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
FROM ubuntu:16.04
MAINTAINER Ahmed Yakout <[email protected]>
LABEL Description="Docker image for NS-3 Network Simulator"
RUN apt-get update
# Needed packages
RUN apt-get install -y \
git \
mercurial \
gcc \
g++ \
vim \
python \
python-dev \
python-setuptools \
qt5-default \
python-pygraphviz \
python-kiwi \
python-pygoocanvas \
libgoocanvas-dev \
ipython \
autoconf \
cvs \
bzr \
unrar \
gdb \
valgrind \
uncrustify \
flex \
bison \
libfl-dev \
tcpdump \
gsl-bin \
libgsl2 \
libgsl-dev \
sqlite \
sqlite3 \
libsqlite3-dev \
libxml2 \
libxml2-dev \
cmake \
libc6-dev \
libc6-dev-i386 \
libclang-dev \
llvm-dev \
automake \
libgtk2.0-0 \
libgtk2.0-dev \
vtun \
lxc \
libboost-signals-dev \
libboost-filesystem-dev
# NS-3
# Create working directory
RUN mkdir -p /usr/ns3
WORKDIR /usr
COPY . /usr
# Configure and compile NS-3
RUN cd ns-allinone-3.26 && ./build.py --enable-examples --enable-tests
RUN ln -s /usr/ns-allinone-3.26/ns-3.26/ /usr/ns3/
# Cleanup
RUN apt-get clean && \
rm -rf /var/lib/apt