lixonet-ee/Dockerfile.bird

40 lines
869 B
Docker
Raw Normal View History

FROM debian:stable
MAINTAINER Pier Carlo Chiodi <pierky@pierky.com>
EXPOSE 179
RUN apt-get update && apt-get install -y \
autoconf \
bison \
build-essential \
curl \
flex \
libreadline-dev \
libncurses5-dev \
m4 \
2020-05-21 03:17:33 +00:00
unzip \
libssh
WORKDIR /root
2020-05-20 22:55:10 +00:00
RUN curl -O -L https://bird.network.cz/download/bird-2.0.7.tar.gz
RUN tar -xvzf bird-2.0.7.tar.gz
# This directory must be mounted as a local volume with '-v `pwd`/bird:/etc/bird:rw' docker's command line option.
# The host's file at `pwd`/bird/bird.conf is used as the configuration file for BIRD.
RUN mkdir /etc/bird
RUN cd bird-2.0.7 && \
autoreconf && \
./configure && \
make && \
make install
RUN cd bird-2.0.7 && \
autoreconf && \
./configure --enable-ipv6 --enable-libssh && \
make && \
make install
CMD bird -c /etc/bird/bird.conf -d