Add plugin in logstash image 17/67217/1
authorac2550 <ac2550@intl.att.com>
Tue, 18 Sep 2018 08:07:58 +0000 (10:07 +0200)
committerac2550 <ac2550@intl.att.com>
Tue, 18 Sep 2018 08:07:58 +0000 (10:07 +0200)
Issue-ID: CLAMP-222

Change-Id: I71814297cfb729e3815a7fac0f5aa59b0f3d39e0
Signed-off-by: ac2550 <ac2550@intl.att.com>
pom.xml
src/main/docker/Dockerfile.logstash [new file with mode: 0644]

diff --git a/pom.xml b/pom.xml
index 68b80ab..e522573 100644 (file)
--- a/pom.xml
+++ b/pom.xml
                                                                                                                                </assembly>
                                                                                                                </build>
                                                                                                </image>
+                                                                                               <image>
+                                                                                                               <name>onap/clamp-dashboard-logstash</name>
+                                                                                                               <alias>onap-clamp-dashboard-logstash</alias>
+                                                                                                               <run>
+                                                                                                                       <skip>true</skip>
+                                                                                                               </run>
+                                                                                                               <build>
+                                                                                                                               <cleanup>true</cleanup>
+                                                                                                                               <tags>
+                                                                                                                                               <tag>latest</tag>
+                                                                                                                                               <tag>${project.docker.latesttagtimestamp.version}</tag>
+                                                                                                                                               <tag>${project.docker.latesttag.version}</tag>
+                                                                                                                               </tags>
+                                                                                                                               <dockerFile>Dockerfile.logstash</dockerFile>
+                                                                                                               </build>
+                                                                                               </image>
                                                                                </images>
                                                                </configuration>
 
diff --git a/src/main/docker/Dockerfile.logstash b/src/main/docker/Dockerfile.logstash
new file mode 100644 (file)
index 0000000..fea3fd6
--- /dev/null
@@ -0,0 +1,7 @@
+FROM  docker.elastic.co/logstash/logstash:6.1.3
+
+MAINTAINER "The Onap Team"
+LABEL Description="Logstash image with some plugins needed for the clamp dashboard"
+
+RUN /usr/share/logstash/bin/logstash-plugin install logstash-filter-elasticsearch
+RUN /usr/share/logstash/bin/logstash-plugin install logstash-filter-prune