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 05103d88b2 [feature](docker)Add Doris Docker Build Script (#16522) 05103d88b2 is described below commit 05103d88b2aa4f20dfc9a33183d016b182295de2 Author: FreeOnePlus <54164178+freeonep...@users.noreply.github.com> AuthorDate: Fri Feb 10 17:18:26 2023 +0800 [feature](docker)Add Doris Docker Build Script (#16522) Add 3FE & 3BE Build Script --- .../docker-compose/3fe_3be/docker-compose.yaml | 137 +++++++++++++++++++++ .../build-cluster/rum-command/3fe_3be.sh | 92 ++++++++++++++ 2 files changed, 229 insertions(+) diff --git a/docker/runtime/docker-compose-demo/build-cluster/docker-compose/3fe_3be/docker-compose.yaml b/docker/runtime/docker-compose-demo/build-cluster/docker-compose/3fe_3be/docker-compose.yaml new file mode 100644 index 0000000000..629a032d84 --- /dev/null +++ b/docker/runtime/docker-compose-demo/build-cluster/docker-compose/3fe_3be/docker-compose.yaml @@ -0,0 +1,137 @@ +# 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' +services: + docker-fe-01: + image: "apache/doris:1.2.1-fe-x86_64" + container_name: "doris-fe-01" + hostname: "fe-01" + environment: + - FE_SERVERS=fe1:172.20.80.2:9010,fe2:172.20.80.3:9010,fe3:172.20.80.4:9010 + - FE_ID=1 + ports: + - 8031:8030 + - 9031:9030 + volumes: + - /data/fe-01/doris-meta:/opt/apache-doris/fe/doris-meta + - /data/fe-01/conf:/opt/apache-doris/fe/conf + - /data/fe-01/log:/opt/apache-doris/fe/log + networks: + doris_net: + ipv4_address: 172.20.80.2 + docker-fe-02: + image: "apache/doris:1.2.1-fe-x86_64" + container_name: "doris-fe-02" + hostname: "fe-02" + environment: + - FE_SERVERS=fe1:172.20.80.2:9010,fe2:172.20.80.3:9010,fe3:172.20.80.4:9010 + - FE_ID=2 + ports: + - 8032:8030 + - 9032:9030 + volumes: + - /data/fe-02/doris-meta:/opt/apache-doris/fe/doris-meta + - /data/fe-02/conf:/opt/apache-doris/fe/conf + - /data/fe-02/log:/opt/apache-doris/fe/log + networks: + doris_net: + ipv4_address: 172.20.80.3 + docker-fe-03: + image: "apache/doris:1.2.1-fe-x86_64" + container_name: "doris-fe-03" + hostname: "fe-03" + environment: + - FE_SERVERS=fe1:172.20.80.2:9010,fe2:172.20.80.3:9010,fe3:172.20.80.4:9010 + - FE_ID=3 + ports: + - 8033:8030 + - 9033:9030 + volumes: + - /data/fe-03/doris-meta:/opt/apache-doris/fe/doris-meta + - /data/fe-03/conf:/opt/apache-doris/fe/conf + - /data/fe-03/log:/opt/apache-doris/fe/log + networks: + doris_net: + ipv4_address: 172.20.80.4 + docker-be-01: + image: "apache/doris:1.2.1-be-x86_64" + container_name: "doris-be-01" + hostname: "be-01" + depends_on: + - docker-fe-01 + - docker-fe-02 + - docker-fe-03 + environment: + - FE_SERVERS=fe1:172.20.80.2:9010,fe2:172.20.80.3:9010,fe3:172.20.80.4:9010 + - BE_ADDR=172.20.80.5:9050 + ports: + - 8041:8040 + volumes: + - /data/be-01/storage:/opt/apache-doris/be/storage + - /data/be-01/conf:/opt/apache-doris/be/conf + - /data/be-01/script:/docker-entrypoint-initdb.d + - /data/be-01/log:/opt/apache-doris/be/log + networks: + doris_net: + ipv4_address: 172.20.80.5 + docker-be-02: + image: "apache/doris:1.2.1-be-x86_64" + container_name: "doris-be-02" + hostname: "be-02" + depends_on: + - docker-fe-01 + - docker-fe-02 + - docker-fe-03 + environment: + - FE_SERVERS=fe1:172.20.80.2:9010,fe2:172.20.80.3:9010,fe3:172.20.80.4:9010 + - BE_ADDR=172.20.80.6:9050 + ports: + - 8042:8040 + volumes: + - /data/be-02/storage:/opt/apache-doris/be/storage + - /data/be-02/conf:/opt/apache-doris/be/conf + - /data/be-02/script:/docker-entrypoint-initdb.d + - /data/be-02/log:/opt/apache-doris/be/log + networks: + doris_net: + ipv4_address: 172.20.80.6 + docker-be-03: + image: "apache/doris:1.2.1-be-x86_64" + container_name: "doris-be-03" + hostname: "be-03" + depends_on: + - docker-fe-01 + - docker-fe-02 + - docker-fe-03 + environment: + - FE_SERVERS=fe1:172.20.80.2:9010,fe2:172.20.80.3:9010,fe3:172.20.80.4:9010 + - BE_ADDR=172.20.80.7:9050 + ports: + - 8043:8040 + volumes: + - /data/be-03/storage:/opt/apache-doris/be/storage + - /data/be-03/conf:/opt/apache-doris/be/conf + - /data/be-03/script:/docker-entrypoint-initdb.d + - /data/be-03/log:/opt/apache-doris/be/log + networks: + doris_net: + ipv4_address: 172.20.80.7 +networks: + doris_net: + ipam: + config: + - subnet: 172.20.80.0/16 diff --git a/docker/runtime/docker-compose-demo/build-cluster/rum-command/3fe_3be.sh b/docker/runtime/docker-compose-demo/build-cluster/rum-command/3fe_3be.sh new file mode 100644 index 0000000000..19a487354e --- /dev/null +++ b/docker/runtime/docker-compose-demo/build-cluster/rum-command/3fe_3be.sh @@ -0,0 +1,92 @@ +#!/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. +docker network create --driver bridge --subnet=172.20.80.0/24 doris-network +docker run -itd \ + --name=fe-01 \ + --env FE_SERVERS="fe1:172.20.80.2:9010,fe2:172.20.80.3:9010,fe3:172.20.80.4:9010" \ + --env FE_ID=1 \ + -p 8031:8030 \ + -p 9031:9030 \ + -v /data/fe-01/doris-meta:/opt/apache-doris/fe/doris-meta \ + -v /data/fe-01/conf:/opt/apache-doris/fe/conf \ + -v /data/fe-01/log:/opt/apache-doris/fe/log \ + --network=doris-network \ + --ip=172.20.80.2 \ + apache/doris:1.2.1-fe-x86_64 + +docker run -itd \ + --name=fe-02 \ + --env FE_SERVERS="fe1:172.20.80.2:9010,fe2:172.20.80.3:9010,fe3:172.20.80.4:9010" \ + --env FE_ID=2 \ + -p 8032:8030 \ + -p 9032:9030 \ + -v /data/fe-02/doris-meta:/opt/apache-doris/fe/doris-meta \ + -v /data/fe-02/conf:/opt/apache-doris/fe/conf \ + -v /data/fe-02/log:/opt/apache-doris/fe/log \ + --network=doris-network \ + --ip=172.20.80.3 \ + apache/doris:1.2.1-fe-x86_64 + +docker run -itd \ + --name=fe-03 \ + --env FE_SERVERS="fe1:172.20.80.2:9010,fe2:172.20.80.3:9010,fe3:172.20.80.4:9010" \ + --env FE_ID=3 \ + -p 8033:8030 \ + -p 9033:9030 \ + -v /data/fe-03/doris-meta:/opt/apache-doris/fe/doris-meta \ + -v /data/fe-03/conf:/opt/apache-doris/fe/conf \ + -v /data/fe-03/log:/opt/apache-doris/fe/log \ + --network=doris-network \ + --ip=172.20.80.4 \ + apache/doris:1.2.1-fe-x86_64 + +docker run -itd \ + --name=be-01 \ + --env FE_SERVERS="fe1:172.20.80.2:9010,fe2:172.20.80.3:9010,fe3:172.20.80.4:9010" \ + --env BE_ADDR="172.20.80.5:9050" \ + -p 8041:8040 \ + -v /data/be-01/storage:/opt/apache-doris/be/storage \ + -v /data/be-01/conf:/opt/apache-doris/be/conf \ + -v /data/be-01/log:/opt/apache-doris/be/log \ + --network=doris-network \ + --ip=172.20.80.5 \ + apache/doris:1.2.1-be-x86_64 + +docker run -itd \ + --name=be-02 \ + --env FE_SERVERS="fe1:172.20.80.2:9010,fe2:172.20.80.3:9010,fe3:172.20.80.4:9010" \ + --env BE_ADDR="172.20.80.6:9050" \ + -p 8042:8040 \ + -v /data/be-02/storage:/opt/apache-doris/be/storage \ + -v /data/be-02/conf:/opt/apache-doris/be/conf \ + -v /data/be-02/log:/opt/apache-doris/be/log \ + --network=doris-network \ + --ip=172.20.80.6 \ + apache/doris:1.2.1-be-x86_64 + +docker run -itd \ + --name=be-03 \ + --env FE_SERVERS="fe1:172.20.80.2:9010,fe2:172.20.80.3:9010,fe3:172.20.80.4:9010" \ + --env BE_ADDR="172.20.80.7:9050" \ + -p 8043:8040 \ + -v /data/be-03/storage:/opt/apache-doris/be/storage \ + -v /data/be-03/conf:/opt/apache-doris/be/conf \ + -v /data/be-03/log:/opt/apache-doris/be/log \ + --network=doris-network \ + --ip=172.20.80.7 \ + apache/doris:1.2.1-be-x86_64 --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org