Skip to content

Latest commit

 

History

History
91 lines (61 loc) · 3.2 KB

README.md

File metadata and controls

91 lines (61 loc) · 3.2 KB

OpenBMP User Interface (UI)

attention: Note you must be running the latest db_rest, MySQL schema, and openbmpd. Get the latest at github.com/openbmp/docker

Includes the following:

  • nginx - Webserver
  • ui - bmpUI

NOTE

Link-State SPF stored procedures are not included. Request them from tievens@cisco.com if you plan to use link-state with path visualizations

Recommended Current Linux Distributions

  1. Ubuntu 16.04
  2. CentOS 7/RHEL 7

1) Install docker

Docker host should be Linux x86_64. Follow the Docker Instructions to install docker.

2) Download the docker image

docker pull openbmp/ui

3) Running The Docker Container

Memory Requirements

Tomcat is configured to expect at least 1G of RAM.

Environment Variables

Below table lists the environment variables that can be used with docker -e <name=value>

NAME Value Details
OPENBMP_API_HOST host or ip Hostname or IP address of OpenBMP API service. The default is localhost
OPENBMP_API_PORT port Port for the OpenBMP API service. The default is 8001

You only need to set the OPENBMP_API_HOST if you have installed the mysql consumer or AIO container on a different host/machine.

Run

 docker run -d --name=openbmp_ui \
     -e OPENBMP_API_HOST=localhost \
     -p 8000:8000 \
     openbmp/ui

Login

The default login is defined/set in the AIO or mysql consumer container. The default is as follows:

Username: openbmp Password: CiscoRA

You should be able to login to the UI by accessing http://HOST:8000/


Troubleshooting and Monitoring

You can use standard docker exec commands to monitor the log files. To monitor tomcat, use docker exec openbmp_ui tail -f /var/log/tomcat7/catalina.out

Alternatively, it can be easier at times to navigate all the log files from within the container. You can do so using:

 docker exec -it openbmp_ui bash

docker logs

You can use docker logs openbmp_ui to get the console logs. This is useful if the container exits due to invalid start or for another reason.


System Start/Restart Config (ubuntu 14.04)

By default, the containers will not start automatically on system boot/startup. You can use the below example to instruct the container to start automatically.

You can read more at Docker Host Integration on how to start containers automatically.

IMPORTANT

The --name=openbmp_ui parameter given to the docker run command is used with the -a openbmp_ui parameter below to start the container by name instead of container ID. You can use whatever name you want, but make sure to use the same name used in docker run.

 cat <<END > /etc/init/openbmp_ui.conf
 description "OpenBMP UI container"
 author "tievens@cisco.com"
 start on filesystem and started docker
 stop on runlevel [!2345]
 respawn
 script
   /usr/bin/docker start -a openbmp_ui
 end script
 END