1
0
Fork 0
mirror of https://github.com/alice-lg/birdwatcher.git synced 2025-03-09 00:00:05 +01:00

added instructions for running

This commit is contained in:
Matthias Hannig 2019-12-23 16:48:43 +01:00
parent 5d05442a05
commit 99e0c703c7
No known key found for this signature in database
GPG key ID: 62E226E47DDCE58D
2 changed files with 32 additions and 0 deletions

26
Dockerfile Normal file
View file

@ -0,0 +1,26 @@
#
# Birdwatcher - Your friendly alice looking glass data source
#
FROM golang:1.13 AS app
WORKDIR /src/birdwatcher
ADD vendor .
ADD go.mod .
ADD go.sum .
RUN go mod download
# Add sourcecode
ADD . .
# Build birdwatcher
RUN make
FROM ehlers/bird2
COPY --from=app /src/birdwatcher/birdwatcher-linux-amd64 /usr/bin/birdwatcher
ADD etc/birdwatcher/birdwatcher.conf /etc/birdwatcher/birdwatcher.conf
ENTRYPOINT ["/usr/bin/birdwatcher", "-config", "/etc/birdwatcher/birdwatcher.conf"]

View file

@ -124,6 +124,12 @@ You need to add a Large BGP Community just before you filter a route, for exampl
accept;
}
### Using Docker
You can run the birdwatcher for bird2 with docker:
docker run -v /var/run/bird.ctl:/usr/local/var/run/bird.ctl -it --rm birdwatcher:latest
### Building an RPM
Building RPMs is supported through [fpm](https://github.com/jordansissel/fpm).