blob: 2a410e419956e87b475796d4fd99b43538737104 [file] [log] [blame]
Matteo Scandolo48d3d2d2017-08-08 13:05:27 -07001
2# Copyright 2017-present Open Networking Foundation
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16
A.R Karthick490f51f2016-06-09 21:29:13 -070017FROM ubuntu:14.04
18MAINTAINER chetan@ciena.com
19WORKDIR /root
20RUN useradd -M quagga
21RUN mkdir /var/log/quagga && chown quagga:quagga /var/log/quagga
22RUN mkdir /var/run/quagga && chown quagga:quagga /var/run/quagga
A R Karthick973ea692016-10-17 12:23:02 -070023RUN apt-get update && apt-get install -qy git autoconf libtool gawk make telnet libreadline6-dev pkg-config protobuf-c-compiler
ChetanGaonkerb5b46c62016-08-16 12:02:53 -070024RUN git clone git://git.savannah.nongnu.org/quagga.git quagga && \
A R Karthick8f69c2c2016-10-21 11:43:26 -070025(cd quagga && git checkout quagga-1.0.20160315 && ./bootstrap.sh && \
A.R Karthick490f51f2016-06-09 21:29:13 -070026sed -i -r 's,htonl.*?\(INADDR_LOOPBACK\),inet_addr\("10.10.0.4"\),g' zebra/zebra_fpm.c && \
27./configure --enable-fpm --disable-doc --localstatedir=/var/run/quagga && make && make install)
28RUN ldconfig
ChetanGaonkerb5b46c62016-08-16 12:02:53 -070029CMD [ "/bin/bash" ]