2019-10-05 19:18:11 +02:00
# Installation
2020-03-09 01:26:55 +01:00
## Running BGPalerter from binaries - Quick Setup
2019-10-05 19:18:11 +02:00
2020-03-09 01:26:55 +01:00
1. Download the binary [here ](https://github.com/nttgin/BGPalerter/releases ) (be sure to select the one for your OS)
2019-10-05 19:18:11 +02:00
2020-04-08 01:48:10 +02:00
2. Execute the binary (e.g. `chmod +x bgpalerter-linux-x64 && ./bgpalerter-linux-x64` )
2020-03-09 01:29:35 +01:00
The first time you run it, the auto-configuration will start.
2019-10-05 19:18:11 +02:00
2020-03-09 01:26:55 +01:00
## Running BGPalerter from binaries - All steps
2019-10-05 19:18:11 +02:00
2020-03-09 01:26:55 +01:00
#### Linux
2019-10-05 19:18:11 +02:00
2020-03-09 01:26:55 +01:00
1. Download the binary: `wget https://github.com/nttgin/BGPalerter/releases/latest/download/bgpalerter-linux-x64`
2019-10-05 19:18:11 +02:00
2020-03-09 01:26:55 +01:00
2. Download [`config.yml.example` ](https://raw.githubusercontent.com/nttgin/BGPalerter/master/config.yml.example ) as `config.yml` (in the same directory of the binary)
2019-10-05 19:18:11 +02:00
2020-04-08 01:48:10 +02:00
3. Make the binary executable (e.g. `chmod +x bgpalerter-linux-x64` )
2019-10-05 19:18:11 +02:00
2020-03-09 01:26:55 +01:00
4. Auto-configure it: `./bgpalerter-linux-x64 generate -a _YOUR_ASN_ -o prefixes.yml -i -m`
2019-10-05 19:18:11 +02:00
2020-03-09 01:26:55 +01:00
5. Run it: `./bgpalerter-linux-x64`
2020-03-09 01:29:35 +01:00
Or use `nohup ./bgpalerter-linux-x64 &` to leave it running after you close the terminal
2020-03-09 01:26:55 +01:00
#### Mac
2020-03-09 01:32:25 +01:00
1. Download the binary [here ](https://github.com/nttgin/BGPalerter/releases/latest/download/bgpalerter-macos-x64 ).
2020-03-09 01:26:55 +01:00
2. Download [`config.yml.example` ](https://raw.githubusercontent.com/nttgin/BGPalerter/master/config.yml.example ) as `config.yml` (in the same directory of the binary)
2020-04-08 01:48:10 +02:00
3. Make the binary executable (e.g. `chmod +x bgpalerter-macos-x64` )
2020-03-09 01:26:55 +01:00
2020-03-09 01:32:25 +01:00
4. Auto-configure it: `./bgpalerter-macos-x64 generate -a _YOUR_ASN_ -o prefixes.yml -i -m`
2020-03-09 01:26:55 +01:00
2020-03-12 17:53:30 +01:00
5. Run it: `./bgpalerter-macos-x64`
2020-03-09 01:26:55 +01:00
#### Windows
1. Download the binary [here ](https://github.com/nttgin/BGPalerter/releases/latest/download/bgpalerter-win-x64.exe ).
2. Download [`config.yml.example` ](https://raw.githubusercontent.com/nttgin/BGPalerter/master/config.yml.example ) as `config.yml` (in the same directory of the binary)
2020-03-12 17:53:30 +01:00
3. Open cmd (press `ctrl + R` and type `cmd` ) and `cd` on the directory where you downloaded the binary (usually `cd C:\Users\_USER_\Downloads` )
2020-03-09 01:26:55 +01:00
4. Run it: `bgpalerter-win-x64.exe`
2019-10-05 19:18:11 +02:00
## Running BGPalerter from the source code
2019-12-12 22:44:26 +01:00
1. Git clone this repo.
2019-10-05 19:18:11 +02:00
2020-03-17 19:31:17 +01:00
2. Install Node.js (version >= 10.16) and npm ([installing node and npm ](node.md )).
2019-10-05 19:18:11 +02:00
2019-12-12 22:44:26 +01:00
3. Execute `npm install` to install all dependencies.
2019-10-05 19:18:11 +02:00
2019-12-12 22:44:26 +01:00
4. Run `npm run watch-and-serve` to run the application. At every file change it will self-reload.
2020-01-18 19:05:10 +01:00
## Running BGPalerter in Docker
BGPalerter is available in Docker Hub [here ](https://hub.docker.com/r/nttgin/bgpalerter/tags ).
There are two main builds:
* `latest` stable version for production monitoring;
* `dev` reflects the last commit in the `dev` branch. Use this only for development purposes.
Additionally, each release has its own build in case you want to revet back to an older version.