]>
Commit | Line | Data |
---|---|---|
e425ee63 CF |
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 \ | |
7b75f8cc | 11 | git \ |
e425ee63 | 12 | install-info \ |
8e6f0d80 | 13 | iputils-ping \ |
e425ee63 CF |
14 | iproute2 \ |
15 | less \ | |
16 | libtool \ | |
17 | libjson-c-dev \ | |
7996f197 | 18 | libpcre3-dev \ |
e425ee63 CF |
19 | libpython-dev \ |
20 | libreadline-dev \ | |
21 | libc-ares-dev \ | |
22 | man \ | |
23 | mininet \ | |
24 | pkg-config \ | |
25 | python-pip \ | |
26 | python-sphinx \ | |
27 | rsync \ | |
8e6f0d80 | 28 | strace \ |
e425ee63 CF |
29 | tcpdump \ |
30 | texinfo \ | |
31 | tmux \ | |
32 | valgrind \ | |
33 | vim \ | |
7996f197 | 34 | wget \ |
e425ee63 CF |
35 | x11-xserver-utils \ |
36 | xterm \ | |
37 | && pip install \ | |
38 | exabgp==3.4.17 \ | |
39 | ipaddr \ | |
40 | pytest | |
41 | ||
7996f197 CF |
42 | RUN cd /tmp \ |
43 | && wget -q https://ci1.netdef.org/artifact/LIBYANG-YANGRELEASE/shared/build-1/Ubuntu-18.04-x86_64-Packages/libyang-dev_0.16.46_amd64.deb \ | |
44 | -O libyang-dev.deb \ | |
45 | && wget -q https://ci1.netdef.org/artifact/LIBYANG-YANGRELEASE/shared/build-1/Ubuntu-18.04-x86_64-Packages/libyang_0.16.46_amd64.deb \ | |
46 | -O libyang.deb \ | |
47 | && echo "039252cc66eb254a97e160b1c325af669470cde8a02d73ec9f7b920ed3c7997c libyang.deb" | sha256sum -c - \ | |
48 | && echo "e7e2d5bfc7b33b3218df8bef404432970f9b4ad10d6dbbdcb0e0be2babbb68e9 libyang-dev.deb" | sha256sum -c - \ | |
49 | && dpkg -i libyang*.deb \ | |
50 | && rm libyang*.deb | |
51 | ||
e425ee63 CF |
52 | RUN groupadd -r -g 92 frr \ |
53 | && groupadd -r -g 85 frrvty \ | |
54 | && useradd -c "FRRouting suite" \ | |
55 | -d /var/run/frr \ | |
56 | -g frr \ | |
57 | -G frrvty \ | |
58 | -r \ | |
59 | -s /sbin/nologin \ | |
60 | frr \ | |
61 | && useradd -d /var/run/exabgp/ \ | |
62 | -s /bin/false \ | |
63 | exabgp | |
64 | ||
65 | # Configure coredumps | |
66 | RUN echo "" >> /etc/security/limits.conf; \ | |
67 | echo "* soft core unlimited" >> /etc/security/limits.conf; \ | |
68 | echo "root soft core unlimited" >> /etc/security/limits.conf; \ | |
69 | echo "* hard core unlimited" >> /etc/security/limits.conf; \ | |
70 | echo "root hard core unlimited" >> /etc/security/limits.conf | |
71 | ||
72 | # Copy run scripts to facilitate users wanting to run the tests | |
54b60cf9 | 73 | COPY docker/inner /opt/topotests |
e425ee63 | 74 | |
3311145d CF |
75 | WORKDIR /root/topotests |
76 | ENV PATH "$PATH:/opt/topotests" | |
77 | ||
78 | RUN echo "cat /opt/topotests/motd.txt" >> /root/.profile && \ | |
e425ee63 CF |
79 | echo "export PS1='(topotests) $PS1'" >> /root/.profile |
80 | ||
3311145d | 81 | ENTRYPOINT [ "bash", "/opt/topotests/entrypoint.sh" ] |