6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-09-27 19:59:02 +00:00
tutor/tests
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
..
commands feat: add --mount option to local/dev 2022-04-20 19:33:17 +02:00
hooks feat: migrate to plugins.v1 with filters & actions 2022-04-15 15:30:54 +02:00
__init__.py Add unit tests! yay! 2019-03-23 16:16:44 -07:00
helpers.py feat: migrate to plugins.v1 with filters & actions 2022-04-15 15:30:54 +02:00
openedx-lms-common-settings Better dev environment 2019-10-24 20:03:36 +02:00
test_bindmounts.py fix: crash during local quickstart -p 2021-05-07 17:01:09 +02:00
test_config.py feat: introduce tutor dev quickstart 2022-04-19 16:53:57 +02:00
test_env.py feat: migrate to plugins.v1 with filters & actions 2022-04-15 15:30:54 +02:00
test_images.py refactor: add code coverage, cover CLI commands with tests 2022-01-04 13:40:33 +01:00
test_jobs.py refactor: get rid of the openedx Docker entrypoint 2022-04-15 15:37:56 +02:00
test_plugins_v0.py feat: migrate to plugins.v1 with filters & actions 2022-04-15 15:30:54 +02:00
test_serialize.py fix: YamlParamType supports line terminators 2021-04-25 09:14:21 +02:00
test_utils.py fix: utils tests on macOS 2022-01-08 18:48:50 +01:00