This is an automated email from the ASF dual-hosted git repository. morningman pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push: new 5f255af065 [Enhancement](docker): Add elasticsearch docker file (#12377) 5f255af065 is described below commit 5f255af065dbf73d7f11cdde7cff219c7046f171 Author: Stalary <stal...@163.com> AuthorDate: Wed Sep 7 08:47:10 2022 +0800 [Enhancement](docker): Add elasticsearch docker file (#12377) --- .../thirdparties/docker-compose/elasticsearch.yaml | 66 ++++++++++++++++++++++ docker/thirdparties/start-thirdparties-docker.sh | 27 +++++++++ 2 files changed, 93 insertions(+) diff --git a/docker/thirdparties/docker-compose/elasticsearch.yaml b/docker/thirdparties/docker-compose/elasticsearch.yaml new file mode 100644 index 0000000000..3fb8289ad2 --- /dev/null +++ b/docker/thirdparties/docker-compose/elasticsearch.yaml @@ -0,0 +1,66 @@ +# 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.9" + +services: + es6: + # es official not provide 6.x image for arm/v8, use compatible image. + image: webhippie/elasticsearch:6.8 + container_name: elasticsearch6 + ports: + - "19200:9200" + environment: + ELASTICSEARCH_CLUSTER_NAME: "elasticsearch6" + ES_JAVA_OPTS: "-Xms256m -Xmx256m" + discovery.type: "single-node" + ELASTICSEARCH_XPACK_SECURITY_ENABLED: "false" + healthcheck: + test: [ "CMD", "curl", "localhost:9200" ] + interval: 30s + timeout: 10s + retries: 100 + es7: + image: elasticsearch:7.17.5 + container_name: elasticsearch7 + ports: + - "29200:9200" + environment: + cluster.name: "elasticsearch7" + ES_JAVA_OPTS: "-Xms256m -Xmx256m" + discovery.type: "single-node" + xpack.security.enabled: "false" + healthcheck: + test: [ "CMD", "curl", "localhost:9200" ] + interval: 30s + timeout: 10s + retries: 100 + es8: + image: elasticsearch:8.3.3 + container_name: elasticsearch8 + ports: + - "39200:9200" + environment: + cluster.name: "elasticsearch8" + ES_JAVA_OPTS: "-Xms256m -Xmx256m" + discovery.type: "single-node" + xpack.security.enabled: "false" + healthcheck: + test: [ "CMD", "curl", "localhost:9200" ] + interval: 30s + timeout: 10s + retries: 100 \ No newline at end of file diff --git a/docker/thirdparties/start-thirdparties-docker.sh b/docker/thirdparties/start-thirdparties-docker.sh new file mode 100755 index 0000000000..0433ca73ab --- /dev/null +++ b/docker/thirdparties/start-thirdparties-docker.sh @@ -0,0 +1,27 @@ +#!/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. + +################################################################ +# This script will restart all thirdparty containers +################################################################ + +################################################################ +# restart elasticsearch containers +################################################################ +docker compose -f docker-compose/elasticsearch.yaml down +docker compose -f docker-compose/elasticsearch.yaml up -d --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org