blob: e40cffa4b688267408630a0ed2ee5bcbd0d1e13f [file] [log] [blame]
A.R Karthick490f51f2016-06-09 21:29:13 -07001FROM ubuntu:14.04
2MAINTAINER chetan@ciena.com
3WORKDIR /root
4RUN useradd -M quagga
5RUN mkdir /var/log/quagga && chown quagga:quagga /var/log/quagga
6RUN mkdir /var/run/quagga && chown quagga:quagga /var/run/quagga
7RUN apt-get update && apt-get install -qy git autoconf libtool gawk make telnet libreadline6-dev
ChetanGaonkerb5b46c62016-08-16 12:02:53 -07008RUN git clone git://git.savannah.nongnu.org/quagga.git quagga && \
A.R Karthick490f51f2016-06-09 21:29:13 -07009(cd quagga && git checkout HEAD && ./bootstrap.sh && \
10sed -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)
12RUN ldconfig
ChetanGaonkerb5b46c62016-08-16 12:02:53 -070013CMD [ "/bin/bash" ]