2023-10-19 19:57:06 -06:00
|
|
|
FROM debian:stable
|
2020-05-20 22:40:50 +00:00
|
|
|
|
|
|
|
MAINTAINER Pier Carlo Chiodi <pierky@pierky.com>
|
|
|
|
|
|
|
|
EXPOSE 179
|
|
|
|
|
2023-01-24 17:00:30 -07:00
|
|
|
ENV BIRD_VERSION 2.0.12
|
2021-09-21 16:06:39 -06:00
|
|
|
|
2020-05-20 22:40:50 +00:00
|
|
|
RUN apt-get update && apt-get install -y \
|
|
|
|
autoconf \
|
2021-09-21 14:22:40 -07:00
|
|
|
git \
|
2020-05-20 22:40:50 +00:00
|
|
|
bison \
|
|
|
|
build-essential \
|
|
|
|
curl \
|
|
|
|
flex \
|
|
|
|
libreadline-dev \
|
|
|
|
libncurses5-dev \
|
|
|
|
m4 \
|
2020-05-21 03:17:33 +00:00
|
|
|
unzip \
|
2020-05-21 03:18:10 +00:00
|
|
|
libssh-dev
|
2020-05-20 22:40:50 +00:00
|
|
|
|
|
|
|
WORKDIR /root
|
2021-09-21 16:06:39 -06:00
|
|
|
RUN curl -O -L https://bird.network.cz/download/bird-$BIRD_VERSION.tar.gz
|
|
|
|
RUN tar -xvzf bird-$BIRD_VERSION.tar.gz
|
2020-05-20 22:40:50 +00:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2021-09-21 16:06:39 -06:00
|
|
|
RUN cd bird-$BIRD_VERSION && \
|
2020-05-20 22:40:50 +00:00
|
|
|
autoreconf && \
|
2020-05-21 03:16:35 +00:00
|
|
|
./configure --enable-ipv6 --enable-libssh && \
|
2020-05-20 22:40:50 +00:00
|
|
|
make && \
|
|
|
|
make install
|
|
|
|
|
2020-06-22 00:18:11 +00:00
|
|
|
CMD bird -s /var/run/bird/bird.ctl -c /etc/bird/bird.conf -d
|