Skip to content

Commit cad8710

Browse files
authored
Feature/some updates (#48)
* ignore IDE config folder * Add zipkin to visualize traces * work around for aker issue * docker-compose is now in docker cli * export spans to zipkin * add access level capability for testing
1 parent e10ab4c commit cad8710

File tree

4 files changed

+26
-1
lines changed

4 files changed

+26
-1
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
diagrams/*.png
22

3+
.idea
4+
35
rendered.*
46
./deploy/kubernetes/helm/xmidt-cloud-ship/
57
./deploy/kubernetes/helm/charts/

deploy/docker-compose/deploy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ PETASOS_VERSION=${PETASOS_VERSION:-latest} \
1919
TALARIA_VERSION=${TALARIA_VERSION:-latest} \
2020
THEMIS_VERSION=${THEMIS_VERSION:-latest} \
2121
SIMULATOR_VERSION=${SIMULATOR_VERSION:-latest} \
22-
docker-compose -f $ROOT_DIR/deploy/docker-compose/docker-compose.yml up -d $@
22+
docker compose -f $ROOT_DIR/deploy/docker-compose/docker-compose.yml up -d $@
2323
if [[ $? -ne 0 ]]; then
2424
exit 1
2525
fi

deploy/docker-compose/docker-compose.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ services:
1717
environment:
1818
- CONSUL_HOST=consul0:8500
1919
- ARGUS_HOST=http://argus:6600
20+
- TRACING_PROVIDER_NAME=zipkin
21+
- TRACING_PROVIDER_ENDPOINT=http://zipkin:9411/api/v2/spans
2022
ports:
2123
- "6100-6103:6100-6103"
2224
depends_on:
@@ -30,6 +32,8 @@ services:
3032
image: xmidt/talaria:${TALARIA_VERSION}
3133
environment:
3234
- CONSUL_HOST=consul0:8500
35+
- TRACING_PROVIDER_NAME=zipkin
36+
- TRACING_PROVIDER_ENDPOINT=http://zipkin:9411/api/v2/spans
3337
ports:
3438
- "6200-6204:6200-6204"
3539
depends_on:
@@ -41,18 +45,24 @@ services:
4145
<<: *talaria
4246
environment:
4347
- CONSUL_HOST=consul0:8500
48+
- TRACING_PROVIDER_NAME=zipkin
49+
- TRACING_PROVIDER_ENDPOINT=http://zipkin:9411/api/v2/spans
4450
ports:
4551
- "6210-6214:6200-6204"
4652
talaria-2:
4753
<<: *talaria
4854
environment:
4955
- CONSUL_HOST=consul1:8500
56+
- TRACING_PROVIDER_NAME=zipkin
57+
- TRACING_PROVIDER_ENDPOINT=http://zipkin:9411/api/v2/spans
5058
ports:
5159
- "6220-6224:6200-6204"
5260
scytale:
5361
image: xmidt/scytale:${SCYTALE_VERSION}
5462
environment:
5563
- CONSUL_HOST=consul0:8500
64+
- TRACING_PROVIDER_NAME=zipkin
65+
- TRACING_PROVIDER_ENDPOINT=http://zipkin:9411/api/v2/spans
5666
ports:
5767
- "6300-6303:6300-6303"
5868
depends_on:
@@ -76,6 +86,8 @@ services:
7686
image: xmidt/themis:${THEMIS_VERSION}
7787
environment:
7888
- CONSUL_HOST=consul0:8500
89+
- TRACING_PROVIDER_NAME=zipkin
90+
- TRACING_PROVIDER_ENDPOINT=http://zipkin:9411/api/v2/spans
7991
ports:
8092
- "6500-6504:6500-6504"
8193
networks:
@@ -85,6 +97,9 @@ services:
8597
image: xmidt/argus:${ARGUS_VERSION}
8698
environment:
8799
- "AWS_ENDPOINT=http://dynamodb:8000"
100+
- TRACING_PROVIDER_NAME=zipkin
101+
- TRACING_PROVIDER_ENDPOINT=http://zipkin:9411/api/v2/spans
102+
- ACCESS_LEVEL_CAPABILITY=x1:issuer:test:.*:all
88103
ports:
89104
- "6600-6603:6600-6603"
90105
depends_on:
@@ -166,5 +181,12 @@ services:
166181
networks:
167182
- xmidt
168183

184+
zipkin:
185+
image: openzipkin/zipkin
186+
ports:
187+
- "9411:9411"
188+
networks:
189+
- xmidt
190+
169191
networks:
170192
xmidt:

simulator/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ RUN cd /build && \
2121
cd /build && \
2222
git clone https://github.com/Comcast/aker.git && \
2323
cd aker && \
24+
git checkout cfb54022fa6e0ba70040e419d34655da955637b5 && \
2425
mkdir build && \
2526
cd build && \
2627
cmake .. && make

0 commit comments

Comments
 (0)