-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile-testbed
34 lines (17 loc) · 1012 Bytes
/
Dockerfile-testbed
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
FROM phusion/baseimage:master
CMD ["/sbin/my_init"]
RUN apt update && apt install --yes build-essential git wget m4 python3 python3-dev python3-setuptools python3-pip -y
RUN apt install --yes libelf-dev tmux screen iproute2 pkg-config net-tools iputils-ping tree -y
RUN apt install --yes tcpdump jq -y
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 3
RUN wget https://apt.llvm.org/llvm.sh && chmod +x llvm.sh && ./llvm.sh 12
RUN update-alternatives --install /usr/bin/clang clang /usr/bin/clang-12 100
RUN update-alternatives --install /usr/bin/llvm-objdump llvm-objdump /usr/bin/llvm-objdump-12 100
RUN ln -sv /opt/eclat-daemon/hike/tools/bpftool /usr/local/bin/
RUN mkdir /opt/eclat-daemon
COPY ./eclat-daemon/requirements.txt .
RUN pip install -r requirements.txt
RUN pip install ipython
#ADD ./eclat-daemon /opt/eclat-daemon-prod
#RUN cd /opt/eclat-daemon-prod && pip install -r requirements.txt
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*