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