]> git.proxmox.com Git - mirror_frr.git/blob - tests/topotests/Dockerfile
Dockerfile: Use iputils-ping instead of inetutils-ping, install strace
[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 flex \
10 gdb \
11 git \
12 install-info \
13 iputils-ping \
14 iproute2 \
15 less \
16 libtool \
17 libjson-c-dev \
18 libpython-dev \
19 libreadline-dev \
20 libc-ares-dev \
21 man \
22 mininet \
23 pkg-config \
24 python-pip \
25 python-sphinx \
26 rsync \
27 strace \
28 tcpdump \
29 texinfo \
30 tmux \
31 valgrind \
32 vim \
33 x11-xserver-utils \
34 xterm \
35 && pip install \
36 exabgp==3.4.17 \
37 ipaddr \
38 pytest
39
40 RUN groupadd -r -g 92 frr \
41 && groupadd -r -g 85 frrvty \
42 && useradd -c "FRRouting suite" \
43 -d /var/run/frr \
44 -g frr \
45 -G frrvty \
46 -r \
47 -s /sbin/nologin \
48 frr \
49 && useradd -d /var/run/exabgp/ \
50 -s /bin/false \
51 exabgp
52
53 # Configure coredumps
54 RUN echo "" >> /etc/security/limits.conf; \
55 echo "* soft core unlimited" >> /etc/security/limits.conf; \
56 echo "root soft core unlimited" >> /etc/security/limits.conf; \
57 echo "* hard core unlimited" >> /etc/security/limits.conf; \
58 echo "root hard core unlimited" >> /etc/security/limits.conf
59
60 # Copy run scripts to facilitate users wanting to run the tests
61 COPY . /root/topotests
62 WORKDIR /root
63 ENV PATH "$PATH:/root/topotests/docker"
64
65 RUN echo "cat /root/topotests/docker/motd.txt" >> /root/.profile && \
66 echo "export PS1='(topotests) $PS1'" >> /root/.profile
67
68 ENTRYPOINT [ "bash", "/root/topotests/docker/entrypoint.sh" ]