File tree Expand file tree Collapse file tree 2 files changed +35
-34
lines changed Expand file tree Collapse file tree 2 files changed +35
-34
lines changed Original file line number Diff line number Diff line change 1- faketsdb :
2- build : faketsdb
3- ports :
4- - 4242:4242
1+ services :
2+ faketsdb :
3+ build : faketsdb
4+ ports :
5+ - " 4242:4242"
56
6- geras :
7- # Uncomment and comment out image below to build locally
8- # build: ..
9- # Default to "image" which is what GitHub actions builds
10- image : image
11- ports :
12- - 19000:19000
13- - 19001:19001
14- links :
15- - faketsdb
16- command :
17- - " -log.level=debug"
18- - " -opentsdb-address=faketsdb:4242"
19- - " -trace-dumpbody"
20- - " -grpc-listen=:19000"
21- - " -http-listen=:19001"
7+ geras :
8+ # Uncomment and comment out image below to build locally
9+ # build: ..
10+ # Default to "image" which is what GitHub actions builds
11+ image : image
12+ ports :
13+ - " 19000:19000"
14+ - " 19001:19001"
15+ depends_on :
16+ - faketsdb
17+ command :
18+ - " -log.level=debug"
19+ - " -opentsdb-address=faketsdb:4242"
20+ - " -trace-dumpbody"
21+ - " -grpc-listen=:19000"
22+ - " -http-listen=:19001"
2223
23- thanos :
24- image : quay.io/thanos/thanos:v0.18.0
25- container_name : thanos
26- ports :
27- - 10902:10902
28- links :
29- - geras
30- command :
31- - " query"
32- - " --store=geras:19000"
24+ thanos :
25+ image : quay.io/thanos/thanos:v0.18.0
26+ container_name : thanos
27+ ports :
28+ - " 10902:10902"
29+ depends_on :
30+ - geras
31+ command :
32+ - " query"
33+ - " --store=geras:19000"
Original file line number Diff line number Diff line change 11#! /bin/bash
22sudo apt-get install -y jq
33
4- docker- compose up -d --force-recreate
4+ docker compose up -d --force-recreate
55if [[ $? != 0 ]]; then
6- docker- compose logs
6+ docker compose logs
77 exit 1
88fi
99
1010set -e
1111
1212docker run --network container:thanos \
13- appropriate /curl --retry 10 --retry-delay 5 --retry-connrefused http://localhost:10902/-/healthy
13+ alpine /curl --retry 10 --retry-delay 5 --retry-connrefused http://localhost:10902/-/healthy
1414
1515# We just check we get some JSON back for now...
1616docker run --network container:thanos \
17- appropriate /curl --retry 2 --retry-delay 5 " http://localhost:10902/api/v1/query?query=test%3Aa%3A5&dedup=true&partial_response=true&time=1572629812.291&_=1572629811861" | jq .
17+ alpine /curl --retry 2 --retry-delay 5 " http://localhost:10902/api/v1/query?query=test%3Aa%3A5&dedup=true&partial_response=true&time=1572629812.291&_=1572629811861" | jq .
You can’t perform that action at this time.
0 commit comments