updated running instructions

This commit is contained in:
Matthias Hannig 2019-12-23 17:17:43 +01:00
parent 4f4a4f77cf
commit 242c585119
No known key found for this signature in database
GPG Key ID: 62E226E47DDCE58D
2 changed files with 11 additions and 1 deletions

View File

@ -17,10 +17,14 @@ ADD . .
# Build birdwatcher
RUN make
# Add birdwatcher to bird
FROM ehlers/bird2
COPY --from=app /src/birdwatcher/birdwatcher-linux-amd64 /usr/bin/birdwatcher
ADD etc/birdwatcher/birdwatcher.conf /etc/birdwatcher/birdwatcher.conf
EXPOSE 29184/tcp
EXPOSE 29186/tcp
ENTRYPOINT ["/usr/bin/birdwatcher", "-config", "/etc/birdwatcher/birdwatcher.conf"]

View File

@ -128,8 +128,14 @@ You need to add a Large BGP Community just before you filter a route, for exampl
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
docker pull alicelg/birdwatcher:latest
docker run -p 29184:29184 -v /var/run/bird.ctl:/usr/local/var/run/bird.ctl -it --rm birdwatcher:latest
Or build your own image:
docker build . -t alicelg/birdwatcher:latest
### Building an RPM
Building RPMs is supported through [fpm](https://github.com/jordansissel/fpm).