blob: d7b2cae354f8e0b58e6a60a52cf0767d44f8f80f (
plain)
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
67
68
|
FROM ubuntu:18.04
RUN export DEBIAN_FRONTEND=noninteractive \
&& apt-get update \
&& apt-get install -y \
autoconf \
binutils \
bison \
flex \
gdb \
git \
install-info \
iputils-ping \
iproute2 \
less \
libtool \
libjson-c-dev \
libpython-dev \
libreadline-dev \
libc-ares-dev \
man \
mininet \
pkg-config \
python-pip \
python-sphinx \
rsync \
strace \
tcpdump \
texinfo \
tmux \
valgrind \
vim \
x11-xserver-utils \
xterm \
&& pip install \
exabgp==3.4.17 \
ipaddr \
pytest
RUN groupadd -r -g 92 frr \
&& groupadd -r -g 85 frrvty \
&& useradd -c "FRRouting suite" \
-d /var/run/frr \
-g frr \
-G frrvty \
-r \
-s /sbin/nologin \
frr \
&& useradd -d /var/run/exabgp/ \
-s /bin/false \
exabgp
# Configure coredumps
RUN echo "" >> /etc/security/limits.conf; \
echo "* soft core unlimited" >> /etc/security/limits.conf; \
echo "root soft core unlimited" >> /etc/security/limits.conf; \
echo "* hard core unlimited" >> /etc/security/limits.conf; \
echo "root hard core unlimited" >> /etc/security/limits.conf
# Copy run scripts to facilitate users wanting to run the tests
COPY . /root/topotests
WORKDIR /root
ENV PATH "$PATH:/root/topotests/docker"
RUN echo "cat /root/topotests/docker/motd.txt" >> /root/.profile && \
echo "export PS1='(topotests) $PS1'" >> /root/.profile
ENTRYPOINT [ "bash", "/root/topotests/docker/entrypoint.sh" ]
|