Skip to content

Commit d15811f

Browse files
PiotrSikoraSwaagie
authored andcommitted
Use local httpbin service in examples. (proxy-wasm#244)
Signed-off-by: Piotr Sikora <[email protected]>
1 parent f6b2395 commit d15811f

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

examples/http_auth_random/docker-compose.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,14 @@ services:
2323
- ./target/wasm32-wasi/release:/etc/envoy/proxy-wasm-plugins
2424
networks:
2525
- envoymesh
26+
depends_on:
27+
- httpbin
28+
httpbin:
29+
image: mccutchen/go-httpbin
30+
hostname: httpbin
31+
ports:
32+
- "8080:8080"
33+
networks:
34+
- envoymesh
2635
networks:
2736
envoymesh: {}

examples/http_auth_random/envoy.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,5 @@ static_resources:
6464
- endpoint:
6565
address:
6666
socket_address:
67-
address: httpbin.org
68-
port_value: 80
69-
hostname: "httpbin.org"
67+
address: httpbin
68+
port_value: 8080

examples/http_auth_random/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ impl HttpContext for HttpAuthRandom {
3535
],
3636
None,
3737
vec![],
38-
Duration::from_secs(5),
38+
Duration::from_secs(1),
3939
)
4040
.unwrap();
4141
Action::Pause

0 commit comments

Comments
 (0)