forked from telematics-lab/IoD_Sim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
58 lines (52 loc) · 1.21 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
FROM ubuntu:20.04
ENV DEBIAN_FRONTEND=noninteractive
####
# Machine Setup
####
RUN apt-get update \
&& apt-get install --no-install-recommends --quiet --assume-yes \
git \
gcc \
g++ \
gdb \
valgrind \
patch \
ssh \
sudo \
# ns3 dependencies
python3 \
python-is-python3 \
python3-dev \
python3-pip \
python3-pybindgen \
python3-pygccxml \
pkg-config \
sqlite3 \
#libgtk-3-dev \
#libsqlite3-dev \
# pybindgen dependencies
#libboost-dev \
#castxml \
# IoD_Sim dependencies
rapidjson-dev \
libgsl-dev \
libxml2-dev \
# Fork dependencies
libboost-all-dev \
wget \
nlohmann-json3-dev
RUN wget https://github.com/CrowCpp/Crow/releases/download/v1.0%2B5/crow-v1.0+5.deb \
&& apt install ./crow-v1.0+5.deb
# Instal IoD_Sim
# - Option 1:
RUN git clone https://github.com/LABORA-INF-UFG/IoD_Sim
WORKDIR /IoD_Sim
# - Option 2:
# WORKDIR /IoD_Sim
# COPY . .
RUN ./tools/install-dependencies.sh
RUN ./tools/prepare-ns3.sh
RUN cd ns3/ \
&& ./ns3 configure --build-profile=debug --enable-examples --disable-mpi --disable-python --enable-modules=iodsim \
&& ./ns3 build
CMD [ "/IoD_Sim/ns3/ns3", "run", "iodsim" ]