diff --git a/docker_db.sh b/docker_db.sh index 6317b5c875..00849f0edd 100755 --- a/docker_db.sh +++ b/docker_db.sh @@ -476,16 +476,29 @@ hana() { cockroachdb() { $CONTAINER_CLI rm -f cockroach || true - $CONTAINER_CLI run -d --name=cockroach -p 26257:26257 -p 8080:8080 docker.io/cockroachdb/cockroach:v20.2.4 start-single-node --insecure + $CONTAINER_CLI run -d --name=cockroach -p 26257:26257 -p 8080:8080 docker.io/cockroachdb/cockroach:v21.2.10 start-single-node \ + --insecure --store=type=mem,size=0.25 --advertise-addr=localhost OUTPUT= while [[ $OUTPUT != *"CockroachDB node starting"* ]]; do echo "Waiting for CockroachDB to start..." sleep 10 - OUTPUT=$($CONTAINER_CLI logs cockroach) + # Note we need to redirect stderr to stdout to capture the logs + OUTPUT=$($CONTAINER_CLI logs cockroach 2>&1) done - echo "Enabling experimental box2d operators" + echo "Enabling experimental box2d operators and some ptimized settings for running the tests" + #settings documented in https://www.cockroachlabs.com/docs/v21.2/local-testing.html#use-a-local-single-node-cluster-with-in-memory-storage $CONTAINER_CLI exec -it cockroach bash -c "cat <