Skip to content

Commit 2f3819c

Browse files
authored
Merge pull request #111 from wiremock/update-docker-compose-command
Update the docker compose command for the integration tests
2 parents ef37003 + d42725c commit 2f3819c

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.github/workflows/tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,6 @@ jobs:
4444

4545
- name: Integration Tests
4646
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

examples/intro/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ to allow us to write solid integration tests that dont involved mockig the code
4242

4343
To run the tests use docker-compose to create the necessary containers.
4444

45-
`docker-compose run overview_srv pytest --tb=short`
45+
`docker compose run overview_srv pytest --tb=short`
4646

4747
## How we use this example code base
4848

examples/intro/docker-compose.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: "3"
33
services:
44
overview_srv:
55
build:
6-
context: ../
6+
context: ../../
77
dockerfile: examples/intro/Dockerfile
88
ports:
99
- "5001:5001"
@@ -13,17 +13,17 @@ services:
1313
- "host.docker.internal:host-gateway"
1414
volumes:
1515
- /var/run/docker.sock:/var/run/docker.sock
16-
- ..:/app/
16+
- ../../:/app/
1717
- .:/app/example/
1818
command: uvicorn product_mock.overview_service:app --host=0.0.0.0 --port=5001
1919

2020
products_srv:
2121
build:
22-
context: ../
22+
context: ../../
2323
dockerfile: examples/intro/Dockerfile
2424
ports:
2525
- "5002:5002"
2626
volumes:
27-
- ..:/app/
27+
- ../../:/app/
2828
- .:/app/example/
2929
command: uvicorn product_mock.products_service:app --host=0.0.0.0 --port=5002

0 commit comments

Comments
 (0)