Voltha Alarm Management using OpenNMS and Elasticsearch
- Added necessary configuration to run a self-contained instance of
OpenNMS
- Elasticsearch/Logstash is responsible for the interception of voltha
alarms and to forward to OpenNMS
Amendment:
- Cleaned up untouched opennms config files
- Added Dockerfile and scripts to override the default entrypoint script
Change-Id: Id611a330f7274d016281e734ade79d22bfc0356b
diff --git a/compose/opennms/Dockerfile b/compose/opennms/Dockerfile
new file mode 100644
index 0000000..241d4e2
--- /dev/null
+++ b/compose/opennms/Dockerfile
@@ -0,0 +1,14 @@
+# Build from latest stable load
+FROM opennms/horizon-core-web:19.0.1-1
+
+# Install supervisord
+RUN yum install -y python-setuptools
+RUN easy_install supervisor
+RUN mkdir -p /var/log/supervisor
+COPY env/supervisord.conf /etc/supervisor/supervisord.conf
+
+# Copy a new startup script to override the default entrypoint script
+COPY env/opennms_start.sh /
+RUN chmod 755 /opennms_start.sh
+
+ENTRYPOINT ["/usr/bin/supervisord"]