]> git.proxmox.com Git - mirror_frr.git/blob - tests/topotests/Dockerfile
Merge pull request #7439 from opensourcerouting/bgp-damp-profile2
[mirror_frr.git] / tests / topotests / Dockerfile
1 FROM ubuntu:18.04
2
3 RUN export DEBIAN_FRONTEND=noninteractive \
4 && apt-get update \
5 && apt-get install -y \
6 autoconf \
7 binutils \
8 bison \
9 ca-certificates \
10 flex \
11 gdb \
12 git \
13 gpg \
14 install-info \
15 iputils-ping \
16 iproute2 \
17 less \
18 libtool \
19 libjson-c-dev \
20 libpcre3-dev \
21 libpython-dev \
22 libpython3-dev \
23 libreadline-dev \
24 libc-ares-dev \
25 libcap-dev \
26 man \
27 mininet \
28 pkg-config \
29 python-pip \
30 python3 \
31 python3-dev \
32 python3-sphinx \
33 python3-pytest \
34 rsync \
35 strace \
36 tcpdump \
37 texinfo \
38 tmux \
39 valgrind \
40 vim \
41 wget \
42 x11-xserver-utils \
43 xterm \
44 && pip install \
45 exabgp==3.4.17 \
46 ipaddr \
47 pytest \
48 && rm -rf /var/lib/apt/lists/*
49
50 RUN export DEBIAN_FRONTEND=noninteractive \
51 && wget -qO- https://deb.frrouting.org/frr/keys.asc | apt-key add - \
52 && echo "deb https://deb.frrouting.org/frr bionic frr-stable" > /etc/apt/sources.list.d/frr.list \
53 && apt-get update \
54 && apt-get install -y libyang-dev \
55 && rm -rf /var/lib/apt/lists/*
56
57 RUN groupadd -r -g 92 frr \
58 && groupadd -r -g 85 frrvty \
59 && useradd -c "FRRouting suite" \
60 -d /var/run/frr \
61 -g frr \
62 -G frrvty \
63 -r \
64 -s /sbin/nologin \
65 frr \
66 && useradd -d /var/run/exabgp/ \
67 -s /bin/false \
68 exabgp
69
70 # Configure coredumps
71 RUN echo "" >> /etc/security/limits.conf; \
72 echo "* soft core unlimited" >> /etc/security/limits.conf; \
73 echo "root soft core unlimited" >> /etc/security/limits.conf; \
74 echo "* hard core unlimited" >> /etc/security/limits.conf; \
75 echo "root hard core unlimited" >> /etc/security/limits.conf
76
77 # Copy run scripts to facilitate users wanting to run the tests
78 COPY docker/inner /opt/topotests
79
80 ENV PATH "$PATH:/opt/topotests"
81
82 RUN echo "cat /opt/topotests/motd.txt" >> /root/.profile && \
83 echo "export PS1='(topotests) $PS1'" >> /root/.profile
84
85 ENTRYPOINT [ "bash", "/opt/topotests/entrypoint.sh" ]