A.R Karthick | 490f51f | 2016-06-09 21:29:13 -0700 | [diff] [blame] | 1 | FROM ubuntu:14.04 |
| 2 | MAINTAINER chetan@ciena.com |
| 3 | WORKDIR /root |
| 4 | RUN useradd -M quagga |
| 5 | RUN mkdir /var/log/quagga && chown quagga:quagga /var/log/quagga |
| 6 | RUN mkdir /var/run/quagga && chown quagga:quagga /var/run/quagga |
A R Karthick | 973ea69 | 2016-10-17 12:23:02 -0700 | [diff] [blame] | 7 | RUN apt-get update && apt-get install -qy git autoconf libtool gawk make telnet libreadline6-dev pkg-config protobuf-c-compiler |
ChetanGaonker | b5b46c6 | 2016-08-16 12:02:53 -0700 | [diff] [blame] | 8 | RUN git clone git://git.savannah.nongnu.org/quagga.git quagga && \ |
A R Karthick | 8f69c2c | 2016-10-21 11:43:26 -0700 | [diff] [blame] | 9 | (cd quagga && git checkout quagga-1.0.20160315 && ./bootstrap.sh && \ |
A.R Karthick | 490f51f | 2016-06-09 21:29:13 -0700 | [diff] [blame] | 10 | sed -i -r 's,htonl.*?\(INADDR_LOOPBACK\),inet_addr\("10.10.0.4"\),g' zebra/zebra_fpm.c && \ |
| 11 | ./configure --enable-fpm --disable-doc --localstatedir=/var/run/quagga && make && make install) |
| 12 | RUN ldconfig |
ChetanGaonker | b5b46c6 | 2016-08-16 12:02:53 -0700 | [diff] [blame] | 13 | CMD [ "/bin/bash" ] |