Update Dockerfile.bird, docker-compose.yml files
This commit is contained in:
parent
0d7a36d7d9
commit
32bb749cfb
38
Dockerfile.bird
Normal file
38
Dockerfile.bird
Normal file
@ -0,0 +1,38 @@
|
||||
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 \
|
||||
unzip
|
||||
|
||||
WORKDIR /root
|
||||
RUN curl -O -L ftp://bird.network.cz/pub/bird/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 && \
|
||||
make && \
|
||||
make install
|
||||
|
||||
CMD bird -c /etc/bird/bird.conf -d
|
@ -20,7 +20,9 @@ services:
|
||||
restart: always
|
||||
bird:
|
||||
network_mode: host
|
||||
image: pierky/bird
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile.bird
|
||||
ports:
|
||||
- "179:179/tcp"
|
||||
volumes:
|
||||
|
Loading…
x
Reference in New Issue
Block a user