Skip to content
This repository has been archived by the owner on Jul 1, 2022. It is now read-only.

Commit

Permalink
crossdock fix (wait for nginx proxy that waits for collector)
Browse files Browse the repository at this point in the history
Signed-off-by: Iori YONEJI <fivo.11235813@gmail.com>
  • Loading branch information
iori-yja committed Mar 12, 2019
1 parent 9892e8d commit 9479bb3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
7 changes: 4 additions & 3 deletions jaeger-crossdock/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ services:
- python
- nodejs
environment:
- WAIT_FOR=test_driver,go,java-udp,java-http,java-https,python,nodejs
- WAIT_FOR=test_driver,go,java-udp,java-http,java-https,python,nodejs,jaeger-collector-https-proxy
- WAIT_FOR_TIMEOUT=60s

- CALL_TIMEOUT=60s
Expand Down Expand Up @@ -76,8 +76,9 @@ services:
- jaeger-collector

jaeger-collector-https-proxy:
image: nginx
image: nginx:alpine
ports:
- "8080:8080"
- "14443:14443"
volumes:
- ./https-proxy/build/proxy.conf:/etc/nginx/conf.d/proxy.conf
Expand All @@ -86,7 +87,7 @@ services:
restart: on-failure
depends_on:
- jaeger-collector
command: ["nginx", "-g", "daemon off;"]
command: ["sh", "-c", "while ! { wget --spider -S http://jaeger-collector:14269; }; do echo waiting...; sleep 10; done; nginx -g 'daemon off;'"]

test_driver:
image: jaegertracing/test-driver
Expand Down
9 changes: 9 additions & 0 deletions jaeger-crossdock/https-proxy/proxy.template.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
server {
listen 8080;
server_name ${SERVER};
location / {
root /usr/share/nginx/html/;
index index.html;
}
}

server {
listen 14443 ssl;
server_name ${SERVER};
Expand Down

0 comments on commit 9479bb3

Please sign in to comment.