]> git.proxmox.com Git - mirror_frr.git/blob - tests/topotests/Dockerfile
Merge pull request #12816 from gpnaveen/stc_rte_err_msg
[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 libelf-dev \
27 man \
28 mininet \
29 pkg-config \
30 python-pip \
31 python3 \
32 python3-dev \
33 python3-sphinx \
34 python3-pytest \
35 rsync \
36 strace \
37 tcpdump \
38 texinfo \
39 tmux \
40 valgrind \
41 vim \
42 wget \
43 x11-xserver-utils \
44 xterm \
45 && pip install \
46 exabgp==3.4.17 \
47 "scapy>=2.4.2" \
48 ipaddr \
49 pytest \
50 && rm -rf /var/lib/apt/lists/*
51
52 RUN export DEBIAN_FRONTEND=noninteractive \
53 && wget -qO- https://deb.frrouting.org/frr/keys.asc | apt-key add - \
54 && echo "deb https://deb.frrouting.org/frr bionic frr-stable" > /etc/apt/sources.list.d/frr.list \
55 && apt-get update \
56 && apt-get install -y libyang-dev \
57 && rm -rf /var/lib/apt/lists/*
58
59 RUN groupadd -r -g 92 frr \
60 && groupadd -r -g 85 frrvty \
61 && useradd -c "FRRouting suite" \
62 -d /var/run/frr \
63 -g frr \
64 -G frrvty \
65 -r \
66 -s /sbin/nologin \
67 frr \
68 && useradd -d /var/run/exabgp/ \
69 -s /bin/false \
70 exabgp
71
72 # Configure coredumps
73 RUN echo "" >> /etc/security/limits.conf; \
74 echo "* soft core unlimited" >> /etc/security/limits.conf; \
75 echo "root soft core unlimited" >> /etc/security/limits.conf; \
76 echo "* hard core unlimited" >> /etc/security/limits.conf; \
77 echo "root hard core unlimited" >> /etc/security/limits.conf
78
79 # Copy run scripts to facilitate users wanting to run the tests
80 COPY docker/inner /opt/topotests
81
82 ENV PATH "$PATH:/opt/topotests"
83
84 RUN echo "cat /opt/topotests/motd.txt" >> /root/.profile && \
85 echo "export PS1='(topotests) $PS1'" >> /root/.profile
86
87 ENTRYPOINT [ "bash", "/opt/topotests/entrypoint.sh" ]