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
Link-State SPF stored procedures are not included. Request them from tievens@cisco.com if you plan to use link-state with path visualizations
- Ubuntu 16.04
- CentOS 7/RHEL 7
Docker host should be Linux x86_64. Follow the Docker Instructions to install docker.
docker pull openbmp/ui
Tomcat is configured to expect at least 1G of RAM.
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.
docker run -d --name=openbmp_ui \
-e OPENBMP_API_HOST=localhost \
-p 8000:8000 \
openbmp/ui
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/
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
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.
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.
The
--name=openbmp_uiparameter given to thedocker runcommand is used with the-a openbmp_uiparameter 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