-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathDockerfile
45 lines (38 loc) · 1.02 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
FROM ubuntu:22.04
ENV PYTHONUNBUFFERED=1
ENV DEBIAN_FRONTEND=noninteractive
####
# Machine setup and dependecies installation
####
RUN apt-get update \
&& apt-get install --no-install-recommends --quiet --assume-yes \
clang-format \
cmake \
g++ \
gdb \
gcc \
git \
make \
libgsl-dev \
libxml2-dev \
patch \
pkg-config \
python3 \
python3-venv \
python3-pip \
python-is-python3 \
rapidjson-dev \
doxygen \
graphviz
# Use local versione of the simulator
#RUN mkdir IoD_Sim
#COPY . ./IoD_Sim/
# Use remote version of the simulator
RUN git clone -b v4.0.2 https://github.com/telematics-lab/IoD_Sim.git
WORKDIR /IoD_Sim
RUN ./tools/prepare-ns3-docker.sh
RUN ./tools/configure-iodsim.sh
WORKDIR ./ns3
RUN ./ns3 build -j$(grep -c ^processor /proc/cpuinfo)
WORKDIR ..
ENTRYPOINT ["/bin/bash","./tools/simulate.sh"]