diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9fedd6c..5b8c143 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -44,6 +44,6 @@ jobs: - name: Integration Tests run: | - cd examples/ - docker-compose build overview_srv - docker-compose run overview_srv pytest --tb=short + cd examples/intro/ + docker compose build overview_srv + docker compose run overview_srv pytest --tb=short diff --git a/examples/intro/README.md b/examples/intro/README.md index 9ff6ae2..cdc054a 100644 --- a/examples/intro/README.md +++ b/examples/intro/README.md @@ -42,7 +42,7 @@ to allow us to write solid integration tests that dont involved mockig the code To run the tests use docker-compose to create the necessary containers. -`docker-compose run overview_srv pytest --tb=short` +`docker compose run overview_srv pytest --tb=short` ## How we use this example code base diff --git a/examples/intro/docker-compose.yml b/examples/intro/docker-compose.yml index 5637014..0192c5e 100644 --- a/examples/intro/docker-compose.yml +++ b/examples/intro/docker-compose.yml @@ -3,7 +3,7 @@ version: "3" services: overview_srv: build: - context: ../ + context: ../../ dockerfile: examples/intro/Dockerfile ports: - "5001:5001" @@ -13,17 +13,17 @@ services: - "host.docker.internal:host-gateway" volumes: - /var/run/docker.sock:/var/run/docker.sock - - ..:/app/ + - ../../:/app/ - .:/app/example/ command: uvicorn product_mock.overview_service:app --host=0.0.0.0 --port=5001 products_srv: build: - context: ../ + context: ../../ dockerfile: examples/intro/Dockerfile ports: - "5002:5002" volumes: - - ..:/app/ + - ../../:/app/ - .:/app/example/ command: uvicorn product_mock.products_service:app --host=0.0.0.0 --port=5002