Update instructions for running a lister in docker

Prefer to execute lister through a celery task as it also enables to
catch possible issues with task implementation.

Also use docker compose v2 commands.
This commit is contained in:
Antoine Lambert 2022-09-26 15:53:26 +02:00
parent 5426883c49
commit dabb1a2ae5
5 changed files with 24 additions and 24 deletions

View file

@ -51,15 +51,15 @@ Testing with Docker
Change directory to swh/docker then launch the docker environment::
docker-compose up -d
docker compose up -d
Then connect to the lister::
Then schedule a bower listing task::
docker exec -it docker_swh-lister_1 bash
docker compose exec swh-scheduler swh scheduler task add -p oneshot list-bower
And run the lister (The output of this listing results in oneshot tasks in the scheduler)::
You can follow lister execution by displaying logs of swh-lister service::
swh lister run -l bower
docker compose logs -f swh-lister
.. _Bower: https://bower.io
.. _registry.bower.io: https://registry.bower.io