VOL-452 Integration of logstash in a swarm cluster
- Startup elasticsearch and logstash separately
- Added new targets in Makefile to build opennms and logstash images
- Default to the swarm kafka domain name
Change-Id: I1f7af5669b6bc270f3ed5c172f42d7e86933ef55
diff --git a/docker/Dockerfile.opennms b/docker/Dockerfile.opennms
new file mode 100644
index 0000000..31233ef
--- /dev/null
+++ b/docker/Dockerfile.opennms
@@ -0,0 +1,17 @@
+# 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
+RUN mkdir -p /var/log/opennms
+RUN mkdir -p /var/opennms/rrd
+RUN mkdir -p /var/opennms/reports
+COPY compose/opennms/env/supervisord.conf /etc/supervisor/supervisord.conf
+
+# Copy a new startup script to override the default entrypoint script
+COPY compose/opennms/env/opennms_start.sh /
+RUN chmod 755 /opennms_start.sh
+
+ENTRYPOINT ["/usr/bin/supervisord"]