File tree 3 files changed +8
-8
lines changed
3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 44
44
45
45
- name : Integration Tests
46
46
run : |
47
- cd examples/
48
- docker- compose build overview_srv
49
- docker- compose run overview_srv pytest --tb=short
47
+ cd examples/intro/
48
+ docker compose build overview_srv
49
+ docker compose run overview_srv pytest --tb=short
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ to allow us to write solid integration tests that dont involved mockig the code
42
42
43
43
To run the tests use docker-compose to create the necessary containers.
44
44
45
- ` docker- compose run overview_srv pytest --tb=short `
45
+ ` docker compose run overview_srv pytest --tb=short `
46
46
47
47
## How we use this example code base
48
48
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ version: "3"
3
3
services :
4
4
overview_srv :
5
5
build :
6
- context : ../
6
+ context : ../../
7
7
dockerfile : examples/intro/Dockerfile
8
8
ports :
9
9
- " 5001:5001"
@@ -13,17 +13,17 @@ services:
13
13
- " host.docker.internal:host-gateway"
14
14
volumes :
15
15
- /var/run/docker.sock:/var/run/docker.sock
16
- - ..:/app/
16
+ - ../../ :/app/
17
17
- .:/app/example/
18
18
command : uvicorn product_mock.overview_service:app --host=0.0.0.0 --port=5001
19
19
20
20
products_srv :
21
21
build :
22
- context : ../
22
+ context : ../../
23
23
dockerfile : examples/intro/Dockerfile
24
24
ports :
25
25
- " 5002:5002"
26
26
volumes :
27
- - ..:/app/
27
+ - ../../ :/app/
28
28
- .:/app/example/
29
29
command : uvicorn product_mock.products_service:app --host=0.0.0.0 --port=5002
You can’t perform that action at this time.
0 commit comments