parent
371c9eb6a6
commit
c749f62470
|
@ -82,9 +82,14 @@ start_docker_env(){
|
|||
local -i datanode_count=${1:-3}
|
||||
|
||||
docker-compose -f "$COMPOSE_FILE" down
|
||||
docker-compose -f "$COMPOSE_FILE" up -d --scale datanode="${datanode_count}"
|
||||
wait_for_datanodes "$COMPOSE_FILE" "${datanode_count}"
|
||||
sleep 10
|
||||
docker-compose -f "$COMPOSE_FILE" up -d --scale datanode="${datanode_count}" \
|
||||
&& wait_for_datanodes "$COMPOSE_FILE" "${datanode_count}" \
|
||||
&& sleep 10
|
||||
|
||||
if [[ $? -gt 0 ]]; then
|
||||
docker-compose -f "$COMPOSE_FILE" down
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
## @description Execute robot tests in a specific container.
|
||||
|
|
Loading…
Reference in New Issue