]> git.proxmox.com Git - mirror_frr.git/blame - tests/topotests/Dockerfile
Docker: Fail if compilation is unsucessful
[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 \
9 flex \
10 gdb \
7b75f8cc 11 git \
e425ee63 12 install-info \
8e6f0d80 13 iputils-ping \
e425ee63
CF
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 \
8e6f0d80 27 strace \
e425ee63
CF
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
40RUN 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
54RUN 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
3311145d 61COPY docker/inner /opt/topotests
ca64604f 62COPY . /root/topotests
e425ee63 63
3311145d
CF
64WORKDIR /root/topotests
65ENV PATH "$PATH:/opt/topotests"
66
67RUN echo "cat /opt/topotests/motd.txt" >> /root/.profile && \
e425ee63
CF
68 echo "export PS1='(topotests) $PS1'" >> /root/.profile
69
3311145d 70ENTRYPOINT [ "bash", "/opt/topotests/entrypoint.sh" ]