Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

migrate to docker compose (v2) #162

Merged
merged 1 commit into from
Sep 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/development.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ Postgres in this case accessed via localhost.

.. code-block:: bash

$ docker-compose up -d postgres
$ docker compose up -d postgres
$ pdm run test-pg-local
$ docker-compose down
$ docker compose down

Or you can use lets task runner to run unit + integration tests (all-on-one) in docker

Expand Down
24 changes: 12 additions & 12 deletions lets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,64 +47,64 @@ commands:
docs:
description: Build docs
depends: [_build-docs]
cmd: docker-compose run --rm docs
cmd: docker compose run --rm docs

test:
description: Run tests
depends: [_build-tests]
cmd: [docker-compose, run, --rm, test]
cmd: [docker compose, run, --rm, test]

test-tox:
description: Run tests using tox
depends: [_build-tests]
cmd: docker-compose run --rm test tox
cmd: docker compose run --rm test tox

bench:
description: Run benchmarks
depends: [_build-tests]
cmd: docker-compose run --rm test-base tests/benchmarks --benchmark-enable $@
cmd: docker compose run --rm test-base tests/benchmarks --benchmark-enable $@

flake:
description: Run flake8
depends: [_build-dev]
cmd: docker-compose run --rm dev pdm run flake
cmd: docker compose run --rm dev pdm run flake

black:
description: Run flake8
depends: [_build-dev]
cmd: docker-compose run --rm dev pdm run black
cmd: docker compose run --rm dev pdm run black

mypy:
description: Run mypy
depends: [_build-dev]
cmd: docker-compose run --rm dev pdm run mypy $LETS_COMMAND_ARGS
cmd: docker compose run --rm dev pdm run mypy $LETS_COMMAND_ARGS

examples-federation:
description: Run federation app from examples
depends: [_build-examples]
cmd: docker-compose up examples-federation
cmd: docker compose up examples-federation

examples-federation-v2:
description: Run federation 2 app from examples
depends: [_build-examples]
cmd: docker-compose up examples-federation-v2
cmd: docker compose up examples-federation-v2

examples-flask:
description: Run flask app from examples
depends: [_build-examples]
cmd: docker-compose up examples-flask
cmd: docker compose up examples-flask

examples-aiohttp:
description: Run aiohttp app from examples
depends: [_build-examples]
cmd: docker-compose up examples-aiohttp
cmd: docker compose up examples-aiohttp

federation-compatibility-test:
description: Run federation compatibility test
depends: [_build-examples]
cmd: |
echo "Dumping schema..."
docker-compose run --rm federation-compatibility-server dump
docker compose run --rm federation-compatibility-server dump
export APOLLO_ELV2_LICENSE=accept

npx @apollo/federation-subgraph-compatibility docker \
Expand Down
Loading