-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile
66 lines (58 loc) · 1.31 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
#Author: Sayandeep Sen ([email protected])
#Author: Palani Kodeswaran ([email protected])
FROM ubuntu:latest
#install dependencies for codequery
RUN apt-get update && apt-get upgrade && apt-get dist-upgrade && apt-get install -y \
build-essential \
g++ \
git \
cmake \
ninja-build \
sqlite3 \
libsqlite3-dev \
cscope \
wget \
python3 \
python3-pip \
exuberant-ctags \
vim \
#add ebpf compilation tools
clang \
llvm \
libelf-dev \
libpcap-dev \
gcc-multilib \
build-essential \
linux-tools-common \
linux-tools-generic \
tcpdump
#add verification tools
RUN apt-get install -y iproute2
RUN apt-get install -y net-tools
#install python dependencies
RUN python3 -m pip install command
RUN python3 -m pip install pytest-shutil
RUN python3 -m pip install argparse
RUN python3 -m pip install lxml
RUN python3 -m pip install tinydb
#install txl
WORKDIR /root
RUN mkdir /root/deps
RUN rm -rf /root/deps/codequery
RUN mkdir /root/deps/codequery
ADD codequery /root/deps/codequery
RUN rm -rf /root/deps/codequery/build
RUN mkdir /root/deps/codequery/build
WORKDIR /root/deps/codequery/build
#make codequery
RUN cmake -G Ninja -DNO_GUI=ON ..
RUN ninja
RUN ninja install
#add extraction code
WORKDIR /root
ADD src src
ADD run2.sh run2.sh
ADD run3.sh run3.sh
#ADD op op
#ADD examples examples
#RUN ./run.sh