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:
parent
5d05442a05
commit
99e0c703c7
2 changed files with 32 additions and 0 deletions
26
Dockerfile
Normal file
26
Dockerfile
Normal 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"]
|
||||
|
|
@ -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).
|
||||
|
|
Loading…
Add table
Reference in a new issue