forked from PLVision/sai-challenger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.client
38 lines (27 loc) · 1.41 KB
/
Dockerfile.client
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
FROM debian:buster
MAINTAINER andriy.kokhan@gmail.com
RUN echo "deb [arch=amd64] http://debian-archive.trafficmanager.net/debian/ buster main contrib non-free" >> /etc/apt/sources.list && \
echo "deb-src [arch=amd64] http://debian-archive.trafficmanager.net/debian/ buster main contrib non-free" >> /etc/apt/sources.list && \
echo "deb [arch=amd64] http://debian-archive.trafficmanager.net/debian-security/ buster/updates main contrib non-free" >> /etc/apt/sources.list && \
echo "deb-src [arch=amd64] http://debian-archive.trafficmanager.net/debian-security/ buster/updates main contrib non-free" >> /etc/apt/sources.list && \
echo "deb [arch=amd64] http://debian-archive.trafficmanager.net/debian buster-backports main" >> /etc/apt/sources.list
## Make apt-get non-interactive
ENV DEBIAN_FRONTEND=noninteractive
# Install generic packages
RUN apt-get update && apt-get install -y \
apt-utils \
procps \
build-essential \
python3 \
python3-pip \
rsyslog \
supervisor
RUN pip3 install redis pytest pytest_dependency pytest-html
# Install PTF dependencies
RUN pip3 install scapy
# Disable kernel logging support
RUN sed -ri '/imklog/s/^/#/' /etc/rsyslog.conf
COPY scripts/client/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
COPY scripts/veth-create.sh /usr/bin/veth-create.sh
WORKDIR /sai-challenger/tests
CMD ["/usr/bin/supervisord"]