Repository: incubator-metron
Updated Branches:
  refs/heads/master b34037202 -> 8b4fa79d1


Revert "METRON-646 Add index templates to metron-docker (kylerichardson via 
merrimanr) closes apache/incubator-metron#441"

This reverts commit 41fc0ddc9881d9cfdd8bae129c0bb7800a116d4c. Change will be 
re-commited with full author details.


Project: http://git-wip-us.apache.org/repos/asf/incubator-metron/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-metron/commit/1e1b658b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-metron/tree/1e1b658b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-metron/diff/1e1b658b

Branch: refs/heads/master
Commit: 1e1b658b76f5c959bcebdf824372eea0d680d3f0
Parents: b340372
Author: Kyle Richardson <kylerichard...@apache.org>
Authored: Mon Feb 27 20:57:30 2017 -0500
Committer: Kyle Richardson <kylerichard...@apache.org>
Committed: Mon Feb 27 20:57:30 2017 -0500

----------------------------------------------------------------------
 metron-docker/.gitignore                        |  1 -
 metron-docker/README.md                         |  2 +-
 metron-docker/compose/docker-compose.yml        |  4 +-
 metron-docker/compose/elasticsearch/Dockerfile  | 27 ----------
 .../compose/elasticsearch/docker-entrypoint.sh  | 37 --------------
 metron-docker/pom.xml                           | 53 --------------------
 6 files changed, 2 insertions(+), 122 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/1e1b658b/metron-docker/.gitignore
----------------------------------------------------------------------
diff --git a/metron-docker/.gitignore b/metron-docker/.gitignore
index 2001ab7..6444af5 100644
--- a/metron-docker/.gitignore
+++ b/metron-docker/.gitignore
@@ -1,5 +1,4 @@
 /compose/.env
-/compose/elasticsearch/es_templates
 /compose/kafkazk/common
 /compose/kafkazk/parser
 /compose/kafkazk/enrichment

http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/1e1b658b/metron-docker/README.md
----------------------------------------------------------------------
diff --git a/metron-docker/README.md b/metron-docker/README.md
index eb0138b..25f8f82 100644
--- a/metron-docker/README.md
+++ b/metron-docker/README.md
@@ -78,7 +78,7 @@ Then, assuming a host ip of `192.168.99.100`, the UIs and 
APIs are available at:
 
 * Storm - http://192.168.99.100:8080/
 * HBase - http://192.168.99.100:16010/
-* Elasticsearch - http://192.168.99.100:9200/_plugin/head/
+* Elasticsearch - http://192.168.99.100:9200/
 * Kibana - http://192.168.99.100:5601/
 
 The Storm logs can be useful when troubleshooting topologies.  They can be 
found on the Storm container in `/usr/share/apache-storm/logs`.

http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/1e1b658b/metron-docker/compose/docker-compose.yml
----------------------------------------------------------------------
diff --git a/metron-docker/compose/docker-compose.yml 
b/metron-docker/compose/docker-compose.yml
index 8ef2d85..8ec5573 100644
--- a/metron-docker/compose/docker-compose.yml
+++ b/metron-docker/compose/docker-compose.yml
@@ -57,12 +57,10 @@ services:
       - elasticsearch
     command: --daemon nimbus supervisor ui logviewer
   elasticsearch:
-    build:
-      context: ./elasticsearch
+    image: elasticsearch:2.3
     ports:
       - "9200:9200"
       - "9300:9300"
-    command: tail -f /dev/null
   kibana:
     build: ./kibana
     ports:

http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/1e1b658b/metron-docker/compose/elasticsearch/Dockerfile
----------------------------------------------------------------------
diff --git a/metron-docker/compose/elasticsearch/Dockerfile 
b/metron-docker/compose/elasticsearch/Dockerfile
deleted file mode 100644
index 790d9eb..0000000
--- a/metron-docker/compose/elasticsearch/Dockerfile
+++ /dev/null
@@ -1,27 +0,0 @@
-#
-#  Licensed to the Apache Software Foundation (ASF) under one or more
-#  contributor license agreements.  See the NOTICE file distributed with
-#  this work for additional information regarding copyright ownership.
-#  The ASF licenses this file to You under the Apache License, Version 2.0
-#  (the "License"); you may not use this file except in compliance with
-#  the License.  You may obtain a copy of the License at
-#
-#      http://www.apache.org/licenses/LICENSE-2.0
-#
-#  Unless required by applicable law or agreed to in writing, software
-#  distributed under the License is distributed on an "AS IS" BASIS,
-#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-#  See the License for the specific language governing permissions and
-#  limitations under the License.
-#
-FROM elasticsearch:2.3
-
-RUN /usr/share/elasticsearch/bin/plugin install mobz/elasticsearch-head
-
-ADD ./es_templates /es_templates
-
-COPY ./wait-for-it.sh /
-RUN chmod 755 /wait-for-it.sh
-
-COPY ./docker-entrypoint.sh /
-ENTRYPOINT ["/docker-entrypoint.sh"]

http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/1e1b658b/metron-docker/compose/elasticsearch/docker-entrypoint.sh
----------------------------------------------------------------------
diff --git a/metron-docker/compose/elasticsearch/docker-entrypoint.sh 
b/metron-docker/compose/elasticsearch/docker-entrypoint.sh
deleted file mode 100755
index 00209dc..0000000
--- a/metron-docker/compose/elasticsearch/docker-entrypoint.sh
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/bin/bash
-#
-#  Licensed to the Apache Software Foundation (ASF) under one or more
-#  contributor license agreements.  See the NOTICE file distributed with
-#  this work for additional information regarding copyright ownership.
-#  The ASF licenses this file to You under the Apache License, Version 2.0
-#  (the "License"); you may not use this file except in compliance with
-#  the License.  You may obtain a copy of the License at
-#
-#      http://www.apache.org/licenses/LICENSE-2.0
-#
-#  Unless required by applicable law or agreed to in writing, software
-#  distributed under the License is distributed on an "AS IS" BASIS,
-#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-#  See the License for the specific language governing permissions and
-#  limitations under the License.
-#
-
-# exit immediately on error
-set -e
-
-# start elasticsearch as non-root user
-chown -R elasticsearch:elasticsearch /usr/share/elasticsearch/data
-chown -R elasticsearch:elasticsearch /usr/share/elasticsearch/logs
-gosu elasticsearch /usr/share/elasticsearch/bin/elasticsearch -d
-
-# wait for elasticsearch to start
-/wait-for-it.sh localhost:9200 -t 30
-
-# load elasticsearch templates
-for template_file in `ls -1 /es_templates`; do
-    template_name=`echo $template_file | sed 's/\.template//g'`
-    curl -XPUT --data @/es_templates/$template_file 
http://localhost:9200/_template/$template_name
-done
-
-# pass through CMD as PID 1
-exec "$@"

http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/1e1b658b/metron-docker/pom.xml
----------------------------------------------------------------------
diff --git a/metron-docker/pom.xml b/metron-docker/pom.xml
index 1351cdf..58f67e9 100644
--- a/metron-docker/pom.xml
+++ b/metron-docker/pom.xml
@@ -89,24 +89,6 @@
                         </configuration>
                     </execution>
                     <execution>
-                        <id>copy-templates-to-elasticsearch</id>
-                        <phase>prepare-package</phase>
-                        <goals>
-                            <goal>copy-resources</goal>
-                        </goals>
-                        <configuration>
-                            
<outputDirectory>${project.basedir}/compose/elasticsearch/es_templates</outputDirectory>
-                            <resources>
-                                <resource>
-                                    
<directory>../metron-deployment/roles/metron_elasticsearch_templates/files/es_templates/</directory>
-                                    <includes>
-                                        <include>*.template</include>
-                                    </includes>
-                                </resource>
-                            </resources>
-                        </configuration>
-                    </execution>
-                    <execution>
                         <id>copy-data-management-to-hbase</id>
                         <phase>prepare-package</phase>
                         <goals>
@@ -251,43 +233,8 @@
                             </resources>
                         </configuration>
                     </execution>
-                    <execution>
-                        <id>copy-wait-for-it-to-elasticsearch</id>
-                        <phase>prepare-package</phase>
-                        <goals>
-                            <goal>copy-resources</goal>
-                        </goals>
-                        <configuration>
-                            
<outputDirectory>${project.basedir}/compose/elasticsearch</outputDirectory>
-                            <resources>
-                                <resource>
-                                    <directory>./scripts</directory>
-                                    <includes>
-                                        <include>wait-for-it.sh</include>
-                                    </includes>
-                                </resource>
-                            </resources>
-                        </configuration>
-                    </execution>
                 </executions>
             </plugin>
-            <plugin>
-                <artifactId>maven-clean-plugin</artifactId>
-                <version>3.0.0</version>
-                <configuration>
-                    <filesets>
-                        <fileset>
-                            <directory>compose</directory>
-                            <includes>
-                                <include>**/*.tar.gz</include>
-                                <include>**/wait-for-it.sh</include>
-                                <include>.env</include>
-                                <include>**/*.template</include>
-                            </includes>
-                        </fileset>
-                    </filesets>
-                </configuration>
-            </plugin>
         </plugins>
     </build>
 </project>
\ No newline at end of file

Reply via email to