This is an automated email from the ASF dual-hosted git repository. dataroaring pushed a commit to branch branch-3.0 in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-3.0 by this push: new d23584f5e7b branch-3.0: [opt](docker)Replace healthy container with `--wait` #47357 (#47420) d23584f5e7b is described below commit d23584f5e7b5ebb16a4a0207f33ed2acf9c77a5c Author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> AuthorDate: Sun Jan 26 11:41:56 2025 +0800 branch-3.0: [opt](docker)Replace healthy container with `--wait` #47357 (#47420) Cherry-picked from #47357 Co-authored-by: Thearas <gaozif...@selectdb.com> --- .../docker-compose/clickhouse/clickhouse.yaml.tpl | 7 ------- .../thirdparties/docker-compose/db2/db2.yaml.tpl | 7 ------- .../docker-compose/hive/hive-2x.yaml.tpl | 8 -------- .../docker-compose/hive/hive-3x.yaml.tpl | 8 -------- .../docker-compose/iceberg/iceberg.yaml.tpl | 8 -------- .../docker-compose/mariadb/mariadb-10.yaml.tpl | 7 ------- .../docker-compose/mysql/mysql-5.7.yaml.tpl | 8 +------- .../docker-compose/oceanbase/oceanbase.yaml.tpl | 8 +------- .../docker-compose/oracle/oracle-11.yaml.tpl | 7 ------- .../postgresql/postgresql-14.yaml.tpl | 7 ------- .../docker-compose/sqlserver/sqlserver.yaml.tpl | 8 +------- docker/thirdparties/run-thirdparties-docker.sh | 22 +++++++++++----------- 12 files changed, 14 insertions(+), 91 deletions(-) diff --git a/docker/thirdparties/docker-compose/clickhouse/clickhouse.yaml.tpl b/docker/thirdparties/docker-compose/clickhouse/clickhouse.yaml.tpl index 82e33d4d719..406c23f8579 100644 --- a/docker/thirdparties/docker-compose/clickhouse/clickhouse.yaml.tpl +++ b/docker/thirdparties/docker-compose/clickhouse/clickhouse.yaml.tpl @@ -39,13 +39,6 @@ services: - ./init:/docker-entrypoint-initdb.d networks: - doris--clickhouse - doris--clickhouse-hello-world: - image: hello-world - depends_on: - doris--clickhouse: - condition: service_healthy - networks: - - doris--clickhouse networks: doris--clickhouse: diff --git a/docker/thirdparties/docker-compose/db2/db2.yaml.tpl b/docker/thirdparties/docker-compose/db2/db2.yaml.tpl index 9967e4013bf..76bf79373c6 100644 --- a/docker/thirdparties/docker-compose/db2/db2.yaml.tpl +++ b/docker/thirdparties/docker-compose/db2/db2.yaml.tpl @@ -39,13 +39,6 @@ services: restart: always networks: - doris--db2_network - db2-hello-world: - image: hello-world - depends_on: - doris--db2_11: - condition: service_healthy - networks: - - doris--db2_network networks: doris--db2_network: ipam: diff --git a/docker/thirdparties/docker-compose/hive/hive-2x.yaml.tpl b/docker/thirdparties/docker-compose/hive/hive-2x.yaml.tpl index 29a44973284..10285d7e405 100644 --- a/docker/thirdparties/docker-compose/hive/hive-2x.yaml.tpl +++ b/docker/thirdparties/docker-compose/hive/hive-2x.yaml.tpl @@ -107,11 +107,3 @@ services: interval: 5s timeout: 60s retries: 120 - - hive-hello-world: - image: hello-world - container_name: ${CONTAINER_UID}hive2-hello-world - depends_on: - hive-metastore: - condition: service_healthy - network_mode: "host" diff --git a/docker/thirdparties/docker-compose/hive/hive-3x.yaml.tpl b/docker/thirdparties/docker-compose/hive/hive-3x.yaml.tpl index c5b54bae032..7fdac05f71c 100644 --- a/docker/thirdparties/docker-compose/hive/hive-3x.yaml.tpl +++ b/docker/thirdparties/docker-compose/hive/hive-3x.yaml.tpl @@ -107,11 +107,3 @@ services: interval: 5s timeout: 60s retries: 120 - - hive-hello-world: - image: hello-world - container_name: ${CONTAINER_UID}hive3-hello-world - depends_on: - hive-metastore: - condition: service_healthy - network_mode: "host" diff --git a/docker/thirdparties/docker-compose/iceberg/iceberg.yaml.tpl b/docker/thirdparties/docker-compose/iceberg/iceberg.yaml.tpl index fa4f8d1cca4..1715d9aa1d7 100644 --- a/docker/thirdparties/docker-compose/iceberg/iceberg.yaml.tpl +++ b/docker/thirdparties/docker-compose/iceberg/iceberg.yaml.tpl @@ -122,14 +122,6 @@ services: mc cp -r /mnt/data/input/minio/warehouse/* minio/warehouse/; tail -f /dev/null " - - iceberg-hello-world: - image: hello-world - container_name: doris--iceberg-hello-world - depends_on: - spark-iceberg: - condition: service_healthy - network_mode: "host" networks: doris--iceberg: diff --git a/docker/thirdparties/docker-compose/mariadb/mariadb-10.yaml.tpl b/docker/thirdparties/docker-compose/mariadb/mariadb-10.yaml.tpl index f22b1a0b0af..28ade329312 100644 --- a/docker/thirdparties/docker-compose/mariadb/mariadb-10.yaml.tpl +++ b/docker/thirdparties/docker-compose/mariadb/mariadb-10.yaml.tpl @@ -39,13 +39,6 @@ services: - ./init:/docker-entrypoint-initdb.d networks: - doris--mariadb - doris--mariadb-hello-world: - image: hello-world - depends_on: - doris--mariadb: - condition: service_healthy - networks: - - doris--mariadb networks: doris--mariadb: diff --git a/docker/thirdparties/docker-compose/mysql/mysql-5.7.yaml.tpl b/docker/thirdparties/docker-compose/mysql/mysql-5.7.yaml.tpl index c335fecace7..3ceeaa313e1 100644 --- a/docker/thirdparties/docker-compose/mysql/mysql-5.7.yaml.tpl +++ b/docker/thirdparties/docker-compose/mysql/mysql-5.7.yaml.tpl @@ -40,13 +40,7 @@ services: - ./my.cnf:/etc/mysql/conf.d/my.cnf networks: - doris--mysql_57 - doris--mysql-hello-world: - image: hello-world - depends_on: - doris--mysql_57: - condition: service_healthy - networks: - - doris--mysql_57 + networks: doris--mysql_57: ipam: diff --git a/docker/thirdparties/docker-compose/oceanbase/oceanbase.yaml.tpl b/docker/thirdparties/docker-compose/oceanbase/oceanbase.yaml.tpl index d836c1252c1..aa64c1d2144 100644 --- a/docker/thirdparties/docker-compose/oceanbase/oceanbase.yaml.tpl +++ b/docker/thirdparties/docker-compose/oceanbase/oceanbase.yaml.tpl @@ -36,13 +36,7 @@ services: - ./init:/root/boot/init.d networks: - doris--oceanbase - doris--oceanbase-hello-world: - image: hello-world - depends_on: - doris--oceanbase: - condition: service_healthy - networks: - - doris--oceanbase + networks: doris--oceanbase: ipam: diff --git a/docker/thirdparties/docker-compose/oracle/oracle-11.yaml.tpl b/docker/thirdparties/docker-compose/oracle/oracle-11.yaml.tpl index c9fb89016fa..d492762cd9e 100644 --- a/docker/thirdparties/docker-compose/oracle/oracle-11.yaml.tpl +++ b/docker/thirdparties/docker-compose/oracle/oracle-11.yaml.tpl @@ -39,13 +39,6 @@ services: - TZ=Asia/Shanghai networks: - doris--oracle_11 - doris--oracle-hello-world: - image: hello-world - depends_on: - doris--oracle_11: - condition: service_healthy - networks: - - doris--oracle_11 networks: doris--oracle_11: diff --git a/docker/thirdparties/docker-compose/postgresql/postgresql-14.yaml.tpl b/docker/thirdparties/docker-compose/postgresql/postgresql-14.yaml.tpl index 9cea58777ec..65aab34b61c 100644 --- a/docker/thirdparties/docker-compose/postgresql/postgresql-14.yaml.tpl +++ b/docker/thirdparties/docker-compose/postgresql/postgresql-14.yaml.tpl @@ -35,13 +35,6 @@ services: - ./init:/docker-entrypoint-initdb.d networks: - doris--postgres - doris--postgres--hello-world: - image: hello-world - depends_on: - doris--postgres: - condition: service_healthy - networks: - - doris--postgres networks: doris--postgres: diff --git a/docker/thirdparties/docker-compose/sqlserver/sqlserver.yaml.tpl b/docker/thirdparties/docker-compose/sqlserver/sqlserver.yaml.tpl index 96e95cc0594..c2195d2f022 100644 --- a/docker/thirdparties/docker-compose/sqlserver/sqlserver.yaml.tpl +++ b/docker/thirdparties/docker-compose/sqlserver/sqlserver.yaml.tpl @@ -62,13 +62,7 @@ services: - SA_PASSWORD=Doris123456 networks: - doris--sqlserver_2022 - doris--sqlserver-hello-world: - image: hello-world - depends_on: - doris--sqlserver_2022: - condition: service_healthy - networks: - - doris--sqlserver_2022 + networks: doris--sqlserver_2022: ipam: diff --git a/docker/thirdparties/run-thirdparties-docker.sh b/docker/thirdparties/run-thirdparties-docker.sh index a67bc360d88..4c6e9e556d3 100755 --- a/docker/thirdparties/run-thirdparties-docker.sh +++ b/docker/thirdparties/run-thirdparties-docker.sh @@ -236,7 +236,7 @@ start_mysql() { if [[ "${STOP}" -ne 1 ]]; then sudo rm "${ROOT}"/docker-compose/mysql/data/* -rf sudo mkdir -p "${ROOT}"/docker-compose/mysql/data/ - sudo docker compose -f "${ROOT}"/docker-compose/mysql/mysql-5.7.yaml --env-file "${ROOT}"/docker-compose/mysql/mysql-5.7.env up -d + sudo docker compose -f "${ROOT}"/docker-compose/mysql/mysql-5.7.yaml --env-file "${ROOT}"/docker-compose/mysql/mysql-5.7.env up -d --wait fi } @@ -248,7 +248,7 @@ start_pg() { if [[ "${STOP}" -ne 1 ]]; then sudo rm "${ROOT}"/docker-compose/postgresql/data/* -rf sudo mkdir -p "${ROOT}"/docker-compose/postgresql/data/data - sudo docker compose -f "${ROOT}"/docker-compose/postgresql/postgresql-14.yaml --env-file "${ROOT}"/docker-compose/postgresql/postgresql-14.env up -d + sudo docker compose -f "${ROOT}"/docker-compose/postgresql/postgresql-14.yaml --env-file "${ROOT}"/docker-compose/postgresql/postgresql-14.env up -d --wait fi } @@ -260,7 +260,7 @@ start_oracle() { if [[ "${STOP}" -ne 1 ]]; then sudo rm "${ROOT}"/docker-compose/oracle/data/* -rf sudo mkdir -p "${ROOT}"/docker-compose/oracle/data/ - sudo docker compose -f "${ROOT}"/docker-compose/oracle/oracle-11.yaml --env-file "${ROOT}"/docker-compose/oracle/oracle-11.env up -d + sudo docker compose -f "${ROOT}"/docker-compose/oracle/oracle-11.yaml --env-file "${ROOT}"/docker-compose/oracle/oracle-11.env up -d --wait fi } @@ -272,7 +272,7 @@ start_db2() { if [[ "${STOP}" -ne 1 ]]; then sudo rm "${ROOT}"/docker-compose/db2/data/* -rf sudo mkdir -p "${ROOT}"/docker-compose/db2/data/ - sudo docker compose -f "${ROOT}"/docker-compose/db2/db2.yaml --env-file "${ROOT}"/docker-compose/db2/db2.env up -d + sudo docker compose -f "${ROOT}"/docker-compose/db2/db2.yaml --env-file "${ROOT}"/docker-compose/db2/db2.env up -d --wait fi } @@ -284,7 +284,7 @@ start_oceanbase() { if [[ "${STOP}" -ne 1 ]]; then sudo rm "${ROOT}"/docker-compose/oceanbase/data/* -rf sudo mkdir -p "${ROOT}"/docker-compose/oceanbase/data/ - sudo docker compose -f "${ROOT}"/docker-compose/oceanbase/oceanbase.yaml --env-file "${ROOT}"/docker-compose/oceanbase/oceanbase.env up -d + sudo docker compose -f "${ROOT}"/docker-compose/oceanbase/oceanbase.yaml --env-file "${ROOT}"/docker-compose/oceanbase/oceanbase.env up -d --wait fi } @@ -296,7 +296,7 @@ start_sqlserver() { if [[ "${STOP}" -ne 1 ]]; then sudo rm "${ROOT}"/docker-compose/sqlserver/data/* -rf sudo mkdir -p "${ROOT}"/docker-compose/sqlserver/data/ - sudo docker compose -f "${ROOT}"/docker-compose/sqlserver/sqlserver.yaml --env-file "${ROOT}"/docker-compose/sqlserver/sqlserver.env up -d + sudo docker compose -f "${ROOT}"/docker-compose/sqlserver/sqlserver.yaml --env-file "${ROOT}"/docker-compose/sqlserver/sqlserver.env up -d --wait fi } @@ -308,7 +308,7 @@ start_clickhouse() { if [[ "${STOP}" -ne 1 ]]; then sudo rm "${ROOT}"/docker-compose/clickhouse/data/* -rf sudo mkdir -p "${ROOT}"/docker-compose/clickhouse/data/ - sudo docker compose -f "${ROOT}"/docker-compose/clickhouse/clickhouse.yaml --env-file "${ROOT}"/docker-compose/clickhouse/clickhouse.env up -d + sudo docker compose -f "${ROOT}"/docker-compose/clickhouse/clickhouse.yaml --env-file "${ROOT}"/docker-compose/clickhouse/clickhouse.env up -d --wait fi } @@ -379,7 +379,7 @@ start_hive2() { envsubst <"${ROOT}"/docker-compose/hive/hadoop-hive-2x.env.tpl >> "${ROOT}"/docker-compose/hive/hadoop-hive-2x.env sudo docker compose -p ${CONTAINER_UID}hive2 -f "${ROOT}"/docker-compose/hive/hive-2x.yaml --env-file "${ROOT}"/docker-compose/hive/hadoop-hive-2x.env down if [[ "${STOP}" -ne 1 ]]; then - sudo docker compose -p ${CONTAINER_UID}hive2 -f "${ROOT}"/docker-compose/hive/hive-2x.yaml --env-file "${ROOT}"/docker-compose/hive/hadoop-hive-2x.env up --build --remove-orphans -d + sudo docker compose -p ${CONTAINER_UID}hive2 -f "${ROOT}"/docker-compose/hive/hive-2x.yaml --env-file "${ROOT}"/docker-compose/hive/hadoop-hive-2x.env up --build --remove-orphans -d --wait fi } @@ -418,7 +418,7 @@ start_hive3() { envsubst <"${ROOT}"/docker-compose/hive/hadoop-hive-3x.env.tpl >> "${ROOT}"/docker-compose/hive/hadoop-hive-3x.env sudo docker compose -p ${CONTAINER_UID}hive3 -f "${ROOT}"/docker-compose/hive/hive-3x.yaml --env-file "${ROOT}"/docker-compose/hive/hadoop-hive-3x.env down if [[ "${STOP}" -ne 1 ]]; then - sudo docker compose -p ${CONTAINER_UID}hive3 -f "${ROOT}"/docker-compose/hive/hive-3x.yaml --env-file "${ROOT}"/docker-compose/hive/hadoop-hive-3x.env up --build --remove-orphans -d + sudo docker compose -p ${CONTAINER_UID}hive3 -f "${ROOT}"/docker-compose/hive/hive-3x.yaml --env-file "${ROOT}"/docker-compose/hive/hadoop-hive-3x.env up --build --remove-orphans -d --wait fi } @@ -452,7 +452,7 @@ start_iceberg() { echo "${ICEBERG_DIR}/data exist, continue !" fi - sudo docker compose -f "${ROOT}"/docker-compose/iceberg/iceberg.yaml --env-file "${ROOT}"/docker-compose/iceberg/iceberg.env up -d + sudo docker compose -f "${ROOT}"/docker-compose/iceberg/iceberg.yaml --env-file "${ROOT}"/docker-compose/iceberg/iceberg.env up -d --wait fi } @@ -561,7 +561,7 @@ start_mariadb() { if [[ "${STOP}" -ne 1 ]]; then sudo mkdir -p "${ROOT}"/docker-compose/mariadb/data/ sudo rm "${ROOT}"/docker-compose/mariadb/data/* -rf - sudo docker compose -f "${ROOT}"/docker-compose/mariadb/mariadb-10.yaml --env-file "${ROOT}"/docker-compose/mariadb/mariadb-10.env up -d + sudo docker compose -f "${ROOT}"/docker-compose/mariadb/mariadb-10.yaml --env-file "${ROOT}"/docker-compose/mariadb/mariadb-10.env up -d --wait fi } --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org