File tree Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 3
3
TEST_DIR=" $( cd " $( dirname " $0 " ) " ; pwd -P ) "
4
4
5
5
IMAGE_TAG=${CIRCLE_TAG:- $($TEST_DIR / ../ tools/ image-tag)}
6
+ IMAGE_PREFIX=" ${IMAGE_PREFIX:- quay.io/ cortexproject/ } "
6
7
7
8
COMMON_ARGS=" -consul.hostname=consul:8500"
8
9
STORAGE_ARGS=
" -config-yaml=/tests/schema1.yaml -dynamodb.url=dynamodb://u:[email protected] .:8000"
Original file line number Diff line number Diff line change @@ -9,4 +9,4 @@ docker network create cortex
9
9
10
10
docker run $RUN_ARGS -d --name=consul --hostname=consul consul:0.9 agent -ui -server -client=0.0.0.0 -bootstrap
11
11
docker run $RUN_ARGS -d --name=dynamodb --hostname=dynamodb amazon/dynamodb-local:1.11.477 -jar DynamoDBLocal.jar -inMemory -sharedDb
12
- docker run $RUN_ARGS -d --name=distributor --hostname=distributor -p 8080:80 quay.io/cortexproject/ cortex:$IMAGE_TAG -target=distributor $COMMON_ARGS -distributor.replication-factor=1
12
+ docker run $RUN_ARGS -d --name=distributor --hostname=distributor -p 8080:80 " $IMAGE_PREFIX " cortex:$IMAGE_TAG -target=distributor $COMMON_ARGS -distributor.replication-factor=1
Original file line number Diff line number Diff line change 9
9
# TODO: wait for DynamoDB ready
10
10
sleep 5
11
11
echo Start table-manager
12
- docker run $RUN_ARGS -d --name=tm --hostname=tm --restart=always quay.io/cortexproject/ cortex:$IMAGE_TAG -target=table-manager $STORAGE_ARGS -table-manager.retention-period=168h -dynamodb.poll-interval=5s
12
+ docker run $RUN_ARGS -d --name=tm --hostname=tm --restart=always " $IMAGE_PREFIX " cortex:$IMAGE_TAG -target=table-manager $STORAGE_ARGS -table-manager.retention-period=168h -dynamodb.poll-interval=5s
13
13
14
14
echo Start ingester
15
- docker run $RUN_ARGS -d --name=i1 --hostname=i1 quay.io/cortexproject/ cortex:$IMAGE_TAG -target=ingester $INGESTER_ARGS
15
+ docker run $RUN_ARGS -d --name=i1 --hostname=i1 " $IMAGE_PREFIX " cortex:$IMAGE_TAG -target=ingester $INGESTER_ARGS
16
16
17
17
sleep 5
18
18
I1_ADDR=$( container_ip i1)
Original file line number Diff line number Diff line change 9
9
# Note we haven't created any tables in the DB yet - we aren't going to run long enough to flush anything
10
10
11
11
echo Start first ingester
12
- docker run $RUN_ARGS -d --name=i1 --hostname=i1 quay.io/cortexproject/ cortex:$IMAGE_TAG -target=ingester $INGESTER_ARGS -ingester.claim-on-rollout=true
12
+ docker run $RUN_ARGS -d --name=i1 --hostname=i1 " $IMAGE_PREFIX " cortex:$IMAGE_TAG -target=ingester $INGESTER_ARGS -ingester.claim-on-rollout=true
13
13
14
14
I1_ADDR=$( container_ip i1)
15
15
wait_for " curl -s -f -m 3 $I1_ADDR /ready" " ingester ready"
@@ -23,7 +23,7 @@ wait_for "has_tokens_owned $DIST_ADDR" "distributor to see ingester in ring"
23
23
docker run $RUN_ARGS --rm $AVALANCHE_IMAGE --metric-count=2 --label-count=2 --series-count=2 --remote-requests-count=1 --remote-url=http://distributor/api/prom/push
24
24
25
25
echo Start second ingester, waiting for first
26
- docker run $RUN_ARGS -d --name=i2 --hostname=i2 quay.io/cortexproject/ cortex:$IMAGE_TAG -target=ingester $INGESTER_ARGS -ingester.join-after=300s -ingester.claim-on-rollout=true
26
+ docker run $RUN_ARGS -d --name=i2 --hostname=i2 " $IMAGE_PREFIX " cortex:$IMAGE_TAG -target=ingester $INGESTER_ARGS -ingester.join-after=300s -ingester.claim-on-rollout=true
27
27
28
28
echo Stop first ingester so it should hand over
29
29
docker stop i1
You can’t perform that action at this time.
0 commit comments