Skip to content

Commit b21f98e

Browse files
committed
需要修改docker-compose.yml,以使得iotdb完全启动后才开始测试
1 parent be1da4a commit b21f98e

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,4 @@ publish/
6868
.idea
6969
/.vs/Apache.IoTDB/FileContentIndex
7070
/.vs/ProjectEvaluation
71+
/.vs/Apache.IoTDB

docker-compose.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ services:
44
apache.iotdb.samples:
55
image: ${DOCKER_REGISTRY-}apacheiotdbsamples
66
depends_on:
7-
- iotdb
7+
iotdb:
8+
condition: service_healthy
89
links:
910
- iotdb
1011
build:
@@ -17,6 +18,12 @@ services:
1718
image: apache/iotdb:0.13.0-node
1819
restart: always
1920
container_name: iotdb
21+
healthcheck:
22+
test: ["CMD", "ls", "/iotdb/data"]
23+
interval: 3s
24+
timeout: 5s
25+
retries: 30
26+
start_period: 30s
2027
ports:
2128
- 6667:6667
2229
networks:

0 commit comments

Comments
 (0)