bgp_platform - BGP outage detection experimental platform
Origin Repo: https://github.com/Timothy-Liuxf/bgp_platform
- Linux operating system
- C++ compiler which supports C++17
- GNU Autoconf and GNU Automake
libpq
andlibpqxx-6.4
bgpdump
- Python 3 with PyTorch
or
- Docker
$ git clone --recursive https://github.com/Timothy-Liuxf/bgp_platform.git
$ cd bgp_platform
or
$ git clone https://github.com/Timothy-Liuxf/bgp_platform.git
$ cd bgp_platform
$ git submodule update --init --recursive
$ docker build . -f Dockerfile.base -t <base image name>
- Open
Dockerfile
:
FROM timothyliuxf/bgp_platform_base AS builder
Then change timothyliuxf/bgp_platform_base
to <base image name>
you set in the previous step.
- Build the target image:
$ docker build . -t <target image name>
# Requires GNU Autoconf and GNU Automake
$ autoreconf -i
$ [ENV=VAL] ./configure
The ENV
and VAL
can be:
BUILD_CONFIG
: Choose configuration.Debug
/debug
: Debug configuration.Release
/release
(default): Release configuration.
CXX
: The C++ compiler to use. The default value isg++
.
$ make -j$(nproc)
Setup a PostgreSQL server.
Write configurations in config/config.json
. Take config/examples/config.json
for an example.
- Mount the directory where the
config.json
is located to/app/config
. - Mount the directory where the initalization information files are located to
/app/info
. - Mount the directory where the data files are located to
/app/data
.
Take scripts/launch_docker.sh
for an example.
$ ./build/bin/bgp_platform [options]