AMBARI-22315. Log Search: Add docker compose file for Solr (oleewere)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/600b06ca Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/600b06ca Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/600b06ca Branch: refs/heads/branch-feature-AMBARI-14714 Commit: 600b06cad1213c5b117fba5032770c7468115168 Parents: a386b35 Author: Oliver Szabo <[email protected]> Authored: Thu Oct 26 20:40:43 2017 +0200 Committer: Oliver Szabo <[email protected]> Committed: Sat Oct 28 01:57:13 2017 +0200 ---------------------------------------------------------------------- .../docker/docker-compose-zookeeper.yml | 40 --------------- ambari-logsearch/docker/solr.yml | 37 ++++++++++++++ ambari-logsearch/docker/solr662.yml | 37 ++++++++++++++ ambari-logsearch/docker/zookeeper.yml | 52 ++++++++++++++++++++ 4 files changed, 126 insertions(+), 40 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/600b06ca/ambari-logsearch/docker/docker-compose-zookeeper.yml ---------------------------------------------------------------------- diff --git a/ambari-logsearch/docker/docker-compose-zookeeper.yml b/ambari-logsearch/docker/docker-compose-zookeeper.yml deleted file mode 100644 index a41eaf3..0000000 --- a/ambari-logsearch/docker/docker-compose-zookeeper.yml +++ /dev/null @@ -1,40 +0,0 @@ -version: '3.1' -services: - zoo1: - image: zookeeper:3.4.10 - restart: always - hostname: zoo1 - networks: - - logsearch-network - ports: - - 2181:2181 - environment: - ZOO_MY_ID: 1 - ZOO_SERVERS: server.1=zoo1:2888:3888 server.2=zoo2:2888:3888 server.3=zoo3:2888:3888 - - zoo2: - image: zookeeper:3.4.10 - restart: always - hostname: zoo2 - networks: - - logsearch-network - ports: - - 2182:2181 - environment: - ZOO_MY_ID: 2 - ZOO_SERVERS: server.1=zoo1:2888:3888 server.2=zoo2:2888:3888 server.3=zoo3:2888:3888 - - zoo3: - image: zookeeper:3.4.10 - restart: always - hostname: zoo3 - networks: - - logsearch-network - ports: - - 2183:2181 - environment: - ZOO_MY_ID: 3 - ZOO_SERVERS: server.1=zoo1:2888:3888 server.2=zoo2:2888:3888 server.3=zoo3:2888:3888 -networks: - logsearch-network: - driver: bridge \ No newline at end of file http://git-wip-us.apache.org/repos/asf/ambari/blob/600b06ca/ambari-logsearch/docker/solr.yml ---------------------------------------------------------------------- diff --git a/ambari-logsearch/docker/solr.yml b/ambari-logsearch/docker/solr.yml new file mode 100644 index 0000000..727aba1 --- /dev/null +++ b/ambari-logsearch/docker/solr.yml @@ -0,0 +1,37 @@ +# 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 +version: '3.3' +services: + solr: + image: solr:7.1.0 + restart: always + hostname: solr + env_file: + - Profile + ports: + - "8886:8983" + networks: + - logsearch-network + entrypoint: + - docker-entrypoint.sh + - solr + - start + - "-f" + - "-c" + - "-z" + - "zoo1:2181,zoo2:2181,zoo3:2181" +networks: + logsearch-network: + driver: bridge \ No newline at end of file http://git-wip-us.apache.org/repos/asf/ambari/blob/600b06ca/ambari-logsearch/docker/solr662.yml ---------------------------------------------------------------------- diff --git a/ambari-logsearch/docker/solr662.yml b/ambari-logsearch/docker/solr662.yml new file mode 100644 index 0000000..b0641ed --- /dev/null +++ b/ambari-logsearch/docker/solr662.yml @@ -0,0 +1,37 @@ +# 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 +version: '3.3' +services: + solr: + image: solr:6.6.2 + restart: always + hostname: solr + env_file: + - Profile + ports: + - "8886:8983" + networks: + - logsearch-network + entrypoint: + - docker-entrypoint.sh + - solr + - start + - "-f" + - "-c" + - "-z" + - "zoo1:2181,zoo2:2181,zoo3:2181" +networks: + logsearch-network: + driver: bridge \ No newline at end of file http://git-wip-us.apache.org/repos/asf/ambari/blob/600b06ca/ambari-logsearch/docker/zookeeper.yml ---------------------------------------------------------------------- diff --git a/ambari-logsearch/docker/zookeeper.yml b/ambari-logsearch/docker/zookeeper.yml new file mode 100644 index 0000000..d616c92 --- /dev/null +++ b/ambari-logsearch/docker/zookeeper.yml @@ -0,0 +1,52 @@ +# 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 +version: '3.3' +services: + zoo1: + image: zookeeper:3.4.10 + restart: always + hostname: zoo1 + networks: + - logsearch-network + ports: + - 2181:2181 + environment: + ZOO_MY_ID: 1 + ZOO_SERVERS: server.1=zoo1:2888:3888 server.2=zoo2:2888:3888 server.3=zoo3:2888:3888 + zoo2: + image: zookeeper:3.4.10 + restart: always + hostname: zoo2 + networks: + - logsearch-network + ports: + - 2182:2181 + environment: + ZOO_MY_ID: 2 + ZOO_SERVERS: server.1=zoo1:2888:3888 server.2=zoo2:2888:3888 server.3=zoo3:2888:3888 + zoo3: + image: zookeeper:3.4.10 + restart: always + hostname: zoo3 + networks: + - logsearch-network + ports: + - 2183:2181 + environment: + ZOO_MY_ID: 3 + ZOO_SERVERS: server.1=zoo1:2888:3888 server.2=zoo2:2888:3888 server.3=zoo3:2888:3888 +networks: + logsearch-network: + driver: bridge \ No newline at end of file
