6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-12-12 14:17:46 +00:00
tutor/tests/commands
Régis Behmo d9486018a2 feat: add --mount option to local/dev
The `--mount` option is available both with `tutor local`
and `tutor dev` commands. It allows users to easily bind-mount containers from
the host to containers. Yes, I know, we already provide that possibility with
the `bindmount` command and the `--volume=/path/` option. But these suffer from
the following drawbacks:

- They are difficult to understand.
- The "bindmount" command name does not make much sense.
- It's not convenient to mount an arbitrary folder from the host to multiple
  containers, such as the many lms/cms containers (web apps, celery workers and
  job runners).

To address this situation, we now recommend to make use of --mount:

1. `--mount=service1[,service2,...]:/host/path:/container/path`: manually mount
   `/host/path` to `/container/path` in container "service1" (and "service2").
2. `--mount=/host/path`: use the new v1 plugin API to discover plugins that
   will detect this option and select the right containers in which to bind-mount
   volumes. This is really nifty...

Close https://github.com/overhangio/2u-tutor-adoption/issues/43
2022-04-20 19:33:17 +02:00
..
__init__.py refactor: add code coverage, cover CLI commands with tests 2022-01-04 13:40:33 +01:00
base.py feat: migrate to plugins.v1 with filters & actions 2022-04-15 15:30:54 +02:00
test_cli.py feat: migrate to plugins.v1 with filters & actions 2022-04-15 15:30:54 +02:00
test_compose.py feat: add --mount option to local/dev 2022-04-20 19:33:17 +02:00
test_config.py feat: migrate to plugins.v1 with filters & actions 2022-04-15 15:30:54 +02:00
test_context.py refactor: add code coverage, cover CLI commands with tests 2022-01-04 13:40:33 +01:00
test_dev.py feat: migrate to plugins.v1 with filters & actions 2022-04-15 15:30:54 +02:00
test_images.py feat: migrate to plugins.v1 with filters & actions 2022-04-15 15:30:54 +02:00
test_k8s.py feat: migrate to plugins.v1 with filters & actions 2022-04-15 15:30:54 +02:00
test_local.py feat: migrate to plugins.v1 with filters & actions 2022-04-15 15:30:54 +02:00
test_plugins.py feat: migrate to plugins.v1 with filters & actions 2022-04-15 15:30:54 +02:00